Skip to content

fix(docs): one sidebar entry per project, versions only in the switcher - #51

Merged
kieronlanning merged 1 commit into
mainfrom
fix/docs-sidebar-single-project
Nov 3, 2026
Merged

kieronlanning merged 1 commit into
mainfrom
fix/docs-sidebar-single-project

Conversation

@kieronlanning

Copy link
Copy Markdown
Contributor

Follow-up to #50, which was merged before this commit could land.

The docs sidebar had become one topic per documentation version, so a project publishing live and prerelease docs appeared twice and the topic picker read as a flat list of versions.

  • Each channel still contributes its own topic internally, so the page list always matches the version being read.
  • Every topic now carries the project name, and the topic picker collapses duplicates (preferring the current version’s link).
  • Versions appear only in the page switcher, which renders only while two versions are published and names both.

Verified locally: 313 unit tests, 43 dist tests, 276-page build with valid links, typecheck/lint/format clean.

…witcher

The sidebar had become one topic per documentation version, so a project with live and prerelease docs appeared twice and the topic list read as a flat set of versions. Each channel still contributes its own topic internally (the page list must match the version being read), but every topic now carries the project name and the picker collapses the duplicates. Versions appear only in the page switcher, which is shown only while two versions are published.
@kieronlanning
kieronlanning merged commit 29bc514 into main Nov 3, 2026
1 check passed
@kieronlanning
kieronlanning deleted the fix/docs-sidebar-single-project branch November 3, 2026 18:52
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.

1 participant