Repository navigation
docs(versions): Hide the 1.x docs from the version navigation - #1201
Merged
yurishkuro merged 2 commits intoNov 9, 2026
Merged
Conversation
The site keeps serving the 1.76 pages, but the in-page version badge, the navbar version menu, the search version filter and the /docs/cli and /docs/operator shortcuts no longer point at them. Blanking the latest and versions settings in hugo.yaml turns the 1.x group off; the templates now tolerate the empty values, and 1.x pages are labelled archive by their major version rather than by matching the setting. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Yuri Shkuro <github@ysh.us>
The in-page badge now hides the 1.x button on the blank setting rather than on a malformed page lookup failing. The /docs/cli and /docs/operator shortcuts name 1.76 directly so the public URLs keep working. The search page adds an entry for a requested version the menu no longer lists, so a search started from a 1.76 page shows the scope it searched. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Yuri Shkuro <github@ysh.us>
yurishkuro
approved these changes
Nov 9, 2026
jkowall
added a commit
to jkowall/Jaeger-documentation-F
that referenced
this pull request
Nov 9, 2026
Resolves conflicts with jaegertracing#1201 (hide the 1.x docs from version navigation): - search.js: keep the selector entry jaegertracing#1201 adds for an unlisted requested version, and keep this branch's removal of submit-on-change (WCAG 3.2.2). - search.spec.ts: keep both the archived-version test from jaegertracing#1201 and this branch's tests. Also drop the Google Fonts entry from the search tests' known CSP violations, since jaegertracing#1178 self-hosts the font. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Jonah Kowall <jkowall@kowall.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which problem is this PR solving?
The 1.x docs are an archive, but every 2.x page still advertises them: the in-page version badge shows a "1.76 (archive)" button, the navbar version menu lists a 1.x group, and the search page offers a 1.x filter.
Description of the changes
hugo.yamlblanks thelatestandversionssettings, which turns the 1.x group off everywhere it is read. Restoring the two values restores the links, so this is reversible.latestis set, and labels a page "archive" by its 1.x major version rather than by matching the setting.versionsis non-empty, instead of always rendering a disabled1.deventry./docs/cliand/docs/operatorshortcuts name 1.76 directly, since those pages exist only in the 1.x docs and the public URLs should keep working./docs/1.76/sampling/, which previously read thelatestparam and fails the build when the param is empty.The 1.76 pages are still built and served, and the Netlify edge function still redirects
/docs/1.N/*to them. Deleting the 1.x content is a separate step.How was this change tested?
npm run build, then checked the rendered output: no "Go to the latest 1.x version" button, no1.deventry in the navbar menu, no(archive)option in the search filter, the shortcuts redirect to 1.76, and the 1.76 pages carry the "(archive)" badge.npm run test:browserpasses; the new search test fails without thesearch.jschange.npm run check:spelling,check:links:internal,check:format,check:dev-linkspass.Checklist
🤖 Generated with Claude Code