Skip to content

docs(docusaurus): move version dropdown to left navbar; shorten label to 'main'#1238

Open
planetf1 wants to merge 4 commits into
generative-computing:mainfrom
planetf1:docs/navbar-version-dropdown
Open

docs(docusaurus): move version dropdown to left navbar; shorten label to 'main'#1238
planetf1 wants to merge 4 commits into
generative-computing:mainfrom
planetf1:docs/navbar-version-dropdown

Conversation

@planetf1

@planetf1 planetf1 commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

What and why

1. Navbar version dropdown position

The version dropdown currently sits on the right side of the navbar, between Community and GitHub:

Docs | API Reference — — — Blog | Community | main ▾ | GitHub | mellea.ai

That position is confusing — it looks like an external link rather than a navigation control for the docs content. This PR moves it to the left side, immediately after API Reference:

Docs | API Reference | main ▾ — — — Blog | Community | GitHub | mellea.ai

2. Version label shortened to 'main'

The label 'main (unreleased)' is longer than needed for a navbar item. Shortened to 'main'.

3. PUBLISHING.md: stale label refs + fork preview docs

  • Updates two references to 'main (unreleased)' that would have become stale after the label change above.
  • Expands the brief fork PR warning into a full "Previewing from your own fork" section, covering the GitHub Pages bootstrap pattern (including the docs/staging workaround needed when gh-pages doesn't exist yet) and the fork baseUrl difference (/mellea/ vs /).

Notes

The build-and-validate CI job builds the full Docusaurus site on every PR touching docs/, so any config error would be caught before merge.

… to 'main'

Two navbar polish changes:

- docsVersionDropdown moved from right (between Community and GitHub)
  to left (after API Reference), so it groups with content navigation
  rather than sitting between external links
- current version label shortened from 'main (unreleased)' to 'main'
  for cleaner display in the dropdown

Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
Assisted-by: Claude Code
@planetf1 planetf1 requested a review from a team as a code owner June 9, 2026 16:42
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 9, 2026
@planetf1 planetf1 requested a review from psschwei June 9, 2026 16:45
@ajbozarth

Copy link
Copy Markdown
Contributor

could you include before and after screen shots?

planetf1 added 3 commits June 9, 2026 17:47
…tions

- Update two 'main (unreleased)' references to 'main' to match the
  label change in docusaurus.config.ts
- Expand the fork PR note into a full 'Previewing from your own fork'
  section covering the GitHub Pages bootstrap pattern (docs/staging
  workaround) and the fork baseUrl difference

Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
Assisted-by: Claude Code
Before the first release snapshot exists, banner: 'unreleased' produces
a circular "see latest version (main)" message. Set banner: 'none' until
a real snapshot version becomes the default.

Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
Assisted-by: Claude Code
Remove the docs/staging bootstrap step (peaceiris creates gh-pages
automatically on first push) and the baseUrl explanation (handled
transparently by the workflow).

Signed-off-by: Nigel Jones <jonesn@uk.ibm.com>
Assisted-by: Claude Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants