Skip to content

Commit 1ec80b5

Browse files
authored
Generate llms.txt using Docsy v0.14.3-44-gc6834296 (#9614)
1 parent 7a15512 commit 1ec80b5

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
path = themes/docsy
44
url = https://github.com/google/docsy.git
55
# cSpell:disable-next-line
6-
docsy-pin = v0.14.3-37-g6b1698a3
6+
docsy-pin = v0.14.3-44-gc6834296
77
docsy-note = "2024-04-01 Switching to google/docsy.git from cncf/docsy.git since we don't have any CNCF customizations."
88
docsy-reminder = "Ensure that any tag referenced by `docsy-pin` is present in the remote repo (url), otherwise add (push) the tags to the repo."
99
[submodule "content-modules/opentelemetry-specification"]

config/_default/hugo.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# cSpell:ignore bluesky cicd docsy goldmark linkify netlify wordmark noopener
1+
# cSpell:ignore bluesky cicd docsy goldmark linkify netlify wordmark noopener llms
22
baseURL: https://opentelemetry.io
33
title: OpenTelemetry
44
disableKinds: [taxonomy]
@@ -109,8 +109,8 @@ cascade:
109109

110110
# Enable redirects for site root (and not locales)
111111
- outputs:
112-
# This must match the equivalent of [outputs.home, redirects]
113-
[HTML, markdown, RSS, redirects]
112+
# This must match the equivalent of [outputs.home, LLMS, redirects]
113+
[HTML, markdown, RSS, LLMS, redirects]
114114
target:
115115
kind: home
116116
sites: { matrix: { languages: [en] } }

layouts/docs/baseof.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
{{ partial "navbar.html" . }}
1717
</header>
1818
<div class="container-fluid td-outer">
19+
{{/*
20+
<!--
21+
There a bug that causes Hugo to escape the scrollspy attributes.
22+
FIXME: Hard coding the scrollspy attributes for now.
23+
-->
1924
<div class="td-main" {{- partialCached "td/scrollspy-attr.txt" . .Section | safeHTMLAttr }}>
25+
*/ -}}
26+
{{ $attr := ` data-bs-spy="scroll" data-bs-target=".td-toc" data-bs-root-margin="0px 0px -10%"` -}}
27+
<div class="td-main" {{- $attr | safeHTMLAttr }}>
2028
<div class="row flex-xl-nowrap">
2129
<aside class="col-12 col-md-3 col-xl-2 td-sidebar d-print-none">
2230
<div id="google_translate_element"></div>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"_install:netlify-cli": "npm list netlify-cli || npm install -O netlify-cli",
3434
"_list:check:*": "npm run --loglevel=warn | grep -Ee '^\\s*check:[^:]+$' | grep -Ev \"check:all|${CMD_SKIP:-noop}\"",
3535
"_list:check:for-test-and-fix": "npm -s run _list:check:* | grep -Ev \"collector-sync|i18n\"",
36-
"_list:cspell": "grep -Ee '^\\s*\"@?cspell' package.json | awk -F: '{print $1}' | tr -d '\"'",
36+
"_list:cspell": "jq -r '.devDependencies | keys[] | select(. == \"cspell\" or startswith(\"@cspell/\"))' package.json | xargs",
3737
"_list:diff-never-empty": "echo README.md && npm run _list:diff --",
3838
"_list:diff:all": "(npm run -s _list:diff -- HEAD; git ls-files --others --exclude-standard) | sort -u",
3939
"_list:diff": "git diff --name-only --diff-filter=AMR",

0 commit comments

Comments
 (0)