fix: version selector and upgrade Docusaurus to 3.9.2 by osterman · Pull Request #840 · cloudposse/docs

@osterman osterman added the no-release

Do not create a new release (wait for additional code changes)

label

Dec 30, 2025

@osterman osterman changed the title fix: display current version in navbar dropdown fix: version selector and upgrade Docusaurus to 3.9.2

Dec 30, 2025
Swizzle DocsVersionDropdownNavbarItem component to detect the version
from the URL path rather than relying on activeDocContext.activeVersion,
which was unreliable. Now the dropdown correctly shows "v1" when viewing
v1 docs and "Latest" when viewing current docs.

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
- Upgrade Docusaurus from 3.4.0 to 3.9.2
- Update swizzled components to use new API imports from
  @docusaurus/plugin-content-docs/client instead of
  @docusaurus/theme-common/internal
- Fix DocVersionBanner to show green tip for latest/current version
- Fix version badge vertical alignment in breadcrumbs
- Hide sponsor button on smaller screens (< 996px)
- Update DocsVersionDropdownNavbarItem for new Docusaurus 3.9 API

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Change navbar items (Learn, Reference, Community, Support) from
  `to: '/path'` to `type: 'doc'` with `docId` to preserve version
- Fix DocVersionBanner internal links to use versioned paths
- Minor footer link trailing slash consistency

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add <!--truncate--> markers after the intro section in all blog posts
that were missing them to eliminate Docusaurus build warnings.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@osterman osterman deleted the osterman/fix-version-selector branch

January 7, 2026 16:24