Skip to content

Keep version selectors current across legacy docs - #1847

Open
HawkSE wants to merge 1 commit into
mainfrom
hawkse/keep-version-selectors-current
Open

Keep version selectors current across legacy docs#1847
HawkSE wants to merge 1 commit into
mainfrom
hawkse/keep-version-selectors-current

Conversation

@HawkSE

@HawkSE HawkSE commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • expose the canonical src/data/versions.ts list at /docs/api/versions with CORS and short shared caching
  • load and validate that manifest in the current selector while retaining the bundled list as a fallback
  • distinguish the current page with an accessible selected badge and keep long menus scrollable
  • document the manifest and fallback behavior in the version-publishing skill

The companion docs-legacy-versions PRs depend on this endpoint being deployed first.

Test plan

  • npx --yes pnpm@10.25.0 run build
  • browser-verified the canonical response and selector states in the local production build

Amp-Thread-ID: https://ampcode.com/threads/T-01a04534-2413-71c9-ac1f-51d83bd1fdbc
Co-authored-by: Scott Ellison II <scott.ellison@sourcegraph.com>
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment 操作 Updated (UTC)
sourcegraph-docs Ready Ready Preview Aug 28, 2026 5:00pm

Request Review

注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

2 participants