Skip to content

docs(versions): Hide the 1.x docs from the version navigation - #1201

Merged
yurishkuro merged 2 commits into
jaegertracing:mainfrom
ysh-bot:hide-v1-docs-from-navigation
Nov 9, 2026
Merged

yurishkuro merged 2 commits into
jaegertracing:mainfrom
ysh-bot:hide-v1-docs-from-navigation

Conversation

@ysh-bot

@ysh-bot ysh-bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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.yaml blanks the latest and versions settings, which turns the 1.x group off everywhere it is read. Restoring the two values restores the links, so this is reversible.
  • The in-page version badge renders its 1.x button only when latest is set, and labels a page "archive" by its 1.x major version rather than by matching the setting.
  • The navbar version selector appends its 1.x group only when versions is non-empty, instead of always rendering a disabled 1.dev entry.
  • The /docs/cli and /docs/operator shortcuts name 1.76 directly, since those pages exist only in the 1.x docs and the public URLs should keep working.
  • The search page adds a selector entry for a requested version the menu no longer lists, so a search started from a 1.76 page shows "1.76 (archive)" as the scope it searched instead of "Latest". A browser test covers this.
  • The 1.76 operator page hardcodes its one link to /docs/1.76/sampling/, which previously read the latest param 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, no 1.dev entry 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:browser passes; the new search test fails without the search.js change.
  • npm run check:spelling, check:links:internal, check:format, check:dev-links pass.
  • The Deno test for the 1.x edge function passes.

Checklist

🤖 Generated with Claude Code

yurishkuro and others added 2 commits November 9, 2026 15:35
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
yurishkuro merged commit fc38927 into jaegertracing:main Nov 9, 2026
9 checks passed
@yurishkuro
yurishkuro deleted the hide-v1-docs-from-navigation branch November 9, 2026 20:46
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants