Skip to content

fix: version dropdown regex + Pages deploy for archived builds#12

Merged
leseb merged 1 commit into
mainfrom
leseb/fix-v070-deploy-skip
Apr 29, 2026
Merged

fix: version dropdown regex + Pages deploy for archived builds#12
leseb merged 1 commit into
mainfrom
leseb/fix-v070-deploy-skip

Conversation

@leseb
Copy link
Copy Markdown
Contributor

@leseb leseb commented Apr 29, 2026

Summary

  • Fix Pages deploy for archived versions: Removed BUILDING_LATEST gate from the Pages artifact upload and deploy steps so archived version builds (e.g., v0.7.0) actually get deployed to GitHub Pages
  • Add version dropdown to navbar: Replaced the non-functional docsVersionDropdown with a custom dropdown populated from versionsArchived.json — latest build shows "main (unreleased)", archived builds show their version tag
  • Fix dropdown regex: The previous regex stopped at the inner }, of dropdownItemsAfter instead of the outer block, causing a TypeScript parse error. Anchored to the 8-space-indented closing brace instead.

Test plan

  • Trigger an archived version build (e.g., v0.7.0) and verify the build succeeds (no parse error)
  • Verify the Pages deploy step runs and the archived version is accessible at its URL
  • Trigger a latest build and verify the version dropdown appears with all archived versions
  • On an archived version page, verify the dropdown shows the version tag with links to main and other versions

🤖 Generated with Claude Code

The non-greedy regex stopped at the inner }, of dropdownItemsAfter
instead of the outer }, closing the whole navbar item. Use \n\s{8}\},\n
to match the 8-space-indented closing brace of the top-level item.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@leseb leseb force-pushed the leseb/fix-v070-deploy-skip branch from 5f2a496 to 9ac8c63 Compare April 29, 2026 14:05
@leseb leseb merged commit 0d5139a into main Apr 29, 2026
1 check passed
@leseb leseb deleted the leseb/fix-v070-deploy-skip branch April 29, 2026 14:06
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