Commit 24e5563
Add v1.x info banner on every v1 docs page
Docusaurus's built-in DocVersionBanner only renders when a version
declares a `banner` in docusaurus.config.js. v2.0 already ships an
"unreleased" warning banner, but v1.x carried no banner — readers had
to consult the version switcher in the navbar to know which major
version they were viewing.
Swizzle DocVersionBanner so v1.x pages render an info callout that
states they are on v1.x (current stable) and links to the v2.0
introduction for preview. v2.0 pages continue to render the original
unreleased banner unchanged. Addresses the "v1/v2 visual distinction
on every page" deliverable in Docs Phase 0 (issue #234).
Verified via npm run build that the banner appears on v1 pages and
not on v2 pages, and that no internal links are broken.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e57da73 commit 24e5563
1 file changed
+33
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments