Repository navigation
Docs 2.x: serve the frozen 2.x docs under /v2 - #569
Merged
Merged
Conversation
The 2.x docs build from this branch at v2.docs.once-ui.com with basePath /v2, so docs.once-ui.com/v2 can mount them like /v1. 3.0 is the stable version, 2.x legacy; Vercel builds this branch only, and every page says which version it describes, with a link to the same page in 3.0. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
The render and visual checks read /sitemap.xml at the root of localhost; with basePath /v2 it 404'd. DOCS_AT_ROOT drops the basePath for CI only. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
Header and Sidebar fetched /v2/api/navigation in CI, where DOCS_AT_ROOT drops the basePath. basePath now reads NEXT_PUBLIC_DOCS_BASE_PATH from next.config. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the 2.x docs branch, which Lorant approved on 21 Nov.
docs-v2is cut fromv2.8.0, and this PR turns it into the frozen 2.x docs site, set up the same wayv1is.versions.data.js: 3.0 is now the stable version at the root. 2.x is a legacy version at/v2(origin v2.docs.once-ui.com, mounted), so this build runs withbasePath: "/v2". A non-stable build mounts nothing.vercel.json: Vercel builds this branch only, through anignoreCommandlike v1's Docs 1.x: build the v1 branch on Vercel #231.VersionNotice: legacy pages now show "Previous major version", with a link to the same page in 3.0. Before this, the notice only appeared on beta pages.Still to do:
v2.docs.once-ui.comincore-docsand assign it to the Git branchdocs-v2.published: true, mounted: true. That adds the docs.once-ui.com/v2 rewrite and enables 2.x in the picker, and it rides the next ship.Generated by Claude Code