Skip to content

Commit d1b6d20

Browse files
TMHSDigitalclaude
andauthored
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

‎CHANGELOG.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ different event from one that moved because it was wrong.
3535
carries a canonical URL and Open Graph and Twitter card tags; the card image
3636
(`site/og.png`) is rendered from `scripts/og_image.html`. Missing paths get a
3737
404 page that links back.
38+
- The site has a header on every page (calculator, docs, example report,
39+
GitHub), and the doc pages have a grouped docs sidebar, an "On this page"
40+
contents list that follows the section in view, a link on every h2 and h3
41+
that copies itself, previous and next links, an "Edit on GitHub" link, and
42+
copy buttons on code blocks. All of the navigation is HTML written at build
43+
time, so it works with scripts off; `site/site.js` adds only the conveniences
44+
and a light, dark, or automatic theme that is remembered between visits.
45+
Form borders and the histogram's bars now meet 3:1 contrast in both themes.
3846

3947
### Changed
4048

0 commit comments

Comments
 (0)