Skip to content

Title the released docs version "(latest)" and stop master overwriting it - #2634

Merged
akenmorris merged 1 commit into
masterfrom
amorris/docs-version-titles
Aug 18, 2026
Merged

Title the released docs version "(latest)" and stop master overwriting it#2634
akenmorris merged 1 commit into
masterfrom
amorris/docs-version-titles

Conversation

@akenmorris

Copy link
Copy Markdown
Contributor

The docs version selector only ever showed <version> (dev) or a bare number, so nothing told a reader which version the site redirects to. The version that takes the latest alias is now titled <version> (latest), and whichever version loses the alias has the suffix stripped, so the dropdown stays correct across releases without hand-editing versions.json.

master builds also published straight over a released version whenever CMakeLists.txt on master had not been bumped past the release yet — the docs version is derived from CMakeLists.txt, so the 6.7 slot kept getting rebuilt from master after 6.7 shipped, which is why 6.7 currently serves 6.8 release notes and bundled-Python install instructions. That case now fails the deploy with a message pointing at the version bump instead of corrupting a shipped version.

…g it

The docs version selector only ever showed "<version> (dev)" or a bare number,
so there was nothing to tell a reader which version the site actually redirects
to. The version that takes the "latest" alias is now titled "<version> (latest)",
and the version that loses the alias has the suffix stripped.

master builds also published straight over a released version whenever
CMakeLists.txt on master had not been bumped past the release yet, which is how
the 6.7 docs came to serve 6.8 release notes and install instructions. That case
now fails the deploy with a message pointing at the version bump.
@akenmorris
akenmorris merged commit 247424f into master Aug 18, 2026
0 of 5 checks passed
@akenmorris
akenmorris deleted the amorris/docs-version-titles branch August 18, 2026 00:36
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