Documentation Theming
Documentation Theming Guardrails¶
This note captures the current, “good” state of the MkDocs theming so we can intentionally return to it if future edits drift.
Default Typography (Always On)¶
- Fonts load exclusively from Google Fonts via
docs/stylesheets/extra.css. - Body text uses Lato; headings, nav labels, and footers use Montserrat with the weights defined in that CSS file.
- Do not add additional font imports unless they replace Lato/Montserrat across the whole site.
Optional ABS Layout¶
- All layout/presentation overrides (two-column nav, hidden tabs, card styles, language flags, etc.) are gated behind the
abs-layoutclass on<body>. - The overrides live in
docs/stylesheets/extra.cssand only apply when JavaScript (or a template) intentionally addsdocument.body.classList.add('abs-layout'). - If the layout ever looks “plain,” verify whether that class is being applied before editing CSS.
Restore / Verify Procedure¶
- Inspect
docs/stylesheets/extra.cssto ensure the top section still defines fonts globally and later rules remain wrapped inbody.abs-layout. - Run
python scripts/krr.py(Kill, Rebuild, Restart) to clear caches, rebuild the site, and serve it locally athttp://127.0.0.1:8000. - Check the served site with and without
abs-layoutapplied to confirm both states work.
Keeping this note updated whenever theming changes gives us a single source of truth for what “correct” looks like.