Commit dcc8e7e
nav-versions: set the switcher button label from the URL
Releases are now a copy of the dev build, so the button's baked label is always
'dev'. Override it client-side from the channel in the URL, so a copied snapshot
served at /v5.0.0/ shows 'v5.0.0' with no rewrite of that element.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 495bce0 commit dcc8e7e
1 file changed
Lines changed: 19 additions & 2 deletions
File tree
- docs/static
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | 48 | | |
37 | 49 | | |
| |||
68 | 80 | | |
69 | 81 | | |
70 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
71 | 88 | | |
72 | | - | |
| 89 | + | |
73 | 90 | | |
74 | | - | |
| 91 | + | |
75 | 92 | | |
76 | 93 | | |
0 commit comments