Documentation page
Optimized for scan-reading and quick orientation, not marketing.
Required surfaces
- Sticky topbar — product/docs switcher, search, version selector, GitHub link.
- Left sidebar TOC — categorized list of pages. Current section + page highlighted. Collapsible groups.
- Center column — prose, 65-75ch max-width. Generous line-height (1.6-1.7).
- Right sidebar in-page anchor TOC — auto-generated from
<h2>/<h3>headings. Sticky. - Code blocks — language-tagged, copy-button, line numbers optional. Mono font, dark on light or vice versa per the StyleSpec.
- Inline callouts — Note / Warning / Tip blocks with left border + icon + tinted background.
- "Next / Previous" footer — links to the surrounding pages in the sidebar order.
Quality rules
- Code samples must be syntactically correct and complete (no
…ellipses unless explaining a contract). - Tables for parameter docs: name | type | default | description.
- Always show one fully-worked example before the API reference.
- Mobile (<768px): collapse left TOC into a drawer behind a hamburger, hide the right anchor TOC entirely.
- Body sans, code mono — no monospace for prose.