Repository navigation
Commit d1b6d20
feat(site): a header on every page, and navigation for the docs (phase 5) (#68)
Every page gets the same header: the calculator, the docs, the example
report, and GitHub, with a theme toggle. The doc pages get a grouped docs
sidebar, an "On this page" contents list that follows the section in
view, a link on every h2 and h3 that copies itself, previous and next
links, an "Edit on GitHub" link, and copy buttons on code blocks.
All of the navigation is HTML written by build_site.py, so it works with
scripts off and check_site_links.mjs verifies every link it adds. The
renderer now also returns each doc's headings and per-section text (the
search index in the next phase reads the latter), emits the heading
links itself rather than through raw HTML, and turns table alignment
into classes so no page carries an inline style.
site/site.js adds only conveniences. theme.js applies a remembered
theme before paint, so a dark choice does not flash light.
Form borders and the histogram's bars now meet 3:1 contrast in both
themes (part of #53).
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 8e2d3a4 commit d1b6d20
9 files changed
Lines changed: 776 additions & 73 deletions
File tree
- scripts
- site
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
0 commit comments