Commit 88753a8
committed
docs(build): switch from html to dirhtml builder for clean URLs
why: The html builder generates relative paths like ../index.html and #
that go stale after SPA navigation across directory depths. The dirhtml
builder generates clean URLs natively (/api/ instead of /api/index.html).
what:
- Change html, start, and design recipes to use -b dirhtml
- sphinx-autobuild serves dirhtml correctly (StaticFiles html=True)
- SPA nav already handles / endings (shouldIntercept checks endsWith("/"))
- rediraffe supports dirhtml natively (DirectoryHTMLBuilder detection)1 parent bbb347c commit 88753a8
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
0 commit comments