Skip to content

Docs 2.x: serve the frozen 2.x docs under /v2 - #569

Merged
lorant-one merged 3 commits into
docs-v2from
docs-v2-setup
Nov 21, 2026
Merged

lorant-one merged 3 commits into
docs-v2from
docs-v2-setup

Conversation

@lorant-one

Copy link
Copy Markdown
Member

This is the 2.x docs branch, which Lorant approved on 21 Nov. docs-v2 is cut from v2.8.0, and this PR turns it into the frozen 2.x docs site, set up the same way v1 is.

  • 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 with basePath: "/v2". A non-stable build mounts nothing.
  • vercel.json: Vercel builds this branch only, through an ignoreCommand like 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:

  1. Add the domain v2.docs.once-ui.com in core-docs and assign it to the Git branch docs-v2.
  2. Make a one-line PR on main to set 2.x to 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

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
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
core-docs Ignored Ignored Preview Nov 21, 2026 12:33pm UTC

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
@lorant-one
lorant-one merged commit 39dbcb3 into docs-v2 Nov 21, 2026
14 of 15 checks passed
@lorant-one
lorant-one deleted the docs-v2-setup branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants