Commit 2a6fdae
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)
- No changes needed to redirects.txt, conf.py, or documentation source1 parent 3c1d061 commit 2a6fdae
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
0 commit comments