Commit faa84e6
authored
docs(site): root of bertini2.org redirects to the current release (chooser → /versions.html) (#340)
## What
`bertini2.org` currently lands on a **version chooser**. Most visitors
don't want to pick a version
— they want the current docs. Make the site **root redirect straight to
the current stable release**.
## How
The site root is generated by `tools/assemble_versioned_docs.py` (the
store is served directly from
the `docs-store` branch, ADR-0050). This changes what that generator
writes at the root:
- **`/index.html`** → a redirect (`<meta refresh>` + canonical) to
`/v{stable}/`. The target follows
the `stable` pointer, so it stays correct every release. If there's no
stable version yet
(bootstrap), it falls back to serving the chooser.
- **`/versions.html`** (new) → the human-readable chooser that used to
be the root (the "latest" card
+ every version). The root redirect links to it for the few who want an
older version.
- **`/versions.json`** unchanged (machine-readable index);
**`/stable/`** unchanged.
## Effect
`bertini2.org` → the current release's docs immediately;
`bertini2.org/versions.html` → the chooser.
Takes effect on the next docs deploy (i.e. the next release's redeploy).
Tests in `tools/test_assemble_versioned_docs.py` updated to assert the
root is a redirect to the
current release and the chooser lives at `/versions.html`. 14 passing.
🤖 Generated with [Claude Code](https://claude.com/claude-code)2 files changed
Lines changed: 47 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
21 | | - | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
69 | 74 | | |
70 | 75 | | |
71 | 76 | | |
72 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
73 | 96 | | |
74 | 97 | | |
75 | 98 | | |
| |||
179 | 202 | | |
180 | 203 | | |
181 | 204 | | |
182 | | - | |
183 | | - | |
| 205 | + | |
| 206 | + | |
184 | 207 | | |
185 | 208 | | |
186 | 209 | | |
| |||
191 | 214 | | |
192 | 215 | | |
193 | 216 | | |
194 | | - | |
| 217 | + | |
195 | 218 | | |
196 | 219 | | |
197 | 220 | | |
| |||
266 | 289 | | |
267 | 290 | | |
268 | 291 | | |
269 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
270 | 299 | | |
271 | 300 | | |
272 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
83 | 87 | | |
84 | 88 | | |
85 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | 95 | | |
88 | 96 | | |
| |||
0 commit comments