On This Page (5)
Documentation Style Foundation
The documentation is authored in Markdown and rendered into a static HTML site by tools/build_docs.py. The checked-in stylesheet at ../assets/altium-monkey-docs.css is the shared visual foundation for the generated HTML docs.
The visual identity uses the amber phosphor theme, the Altium Monkey ASCII mark, and the generated Altium Stroke webfont families.
Scope
The styling and HTML build pipeline are intentionally dependency-free:
- No external static-site generator or Node build toolchain is required.
- Markdown files remain readable directly on GitHub and by LLM tooling.
- Generated HTML pages reuse the same
--mk-*CSS variables and layout classes. - Generated webfont files are static assets, not runtime dependencies.
Design Tokens
The stylesheet exposes stable Monkey Kit --mk-* variables for:
- background, panel, input, border, accent, text, and diagnostic colors
- phosphor-tuned syntax highlighting tokens (
--mk-syn-*) - Altium Stroke body/heading font stacks (
data-font="stroke",data-font="stroke-sans", anddata-font="stroke-serif") plus monospace code-block stacks (--mk-mono) - spacing, radius, glow, and transition values
Generated pages consume these variables instead of hard-coding separate palettes. The stylesheet also defines --am-font-stroke, --am-font-stroke-sans, and --am-font-stroke-serif as compatibility tokens.
Font Assets
The stroke-font bundle ships three families (Altium Stroke, Altium Stroke Sans, and Altium Stroke Serif), each in Light (300), Regular (400), and Bold (700) weights in WOFF2, WOFF, TTF, and OTF formats, including:
- ../assets/fonts/altium-stroke.woff2
- ../assets/fonts/altium-stroke.woff
- ../assets/fonts/altium-stroke.ttf
- ../assets/fonts/altium-stroke.otf
- ../assets/fonts/altium-stroke-bold.woff2
- ../assets/fonts/altium-stroke-bold.woff
- ../assets/fonts/altium-stroke-bold.ttf
- ../assets/fonts/altium-stroke-bold.otf
- ../assets/fonts/altium-monkey-stroke-fonts.css
A themed showcase page is published at ../assets/fonts/demo.html.
../assets/altium-monkey-docs.css loads all nine @font-face rules so readers can switch between Altium Stroke, Altium Stroke Sans, and Altium Stroke Serif across the generated docs. Monospace code blocks and the ASCII monkey mark always retain --mk-mono.
Monkey Mark
The Altium Monkey ASCII mark is shipped with the documentation assets and is always written lowercase (altium-monkey). Generated HTML pages embed the mark inside .monkey-mark / .monkey-art.
Generated HTML Docs
Build the static HTML site locally from the repository root:
uv run python tools\build_docs.pyThe command writes a host-agnostic static site into site/ (gitignored) using relative URLs so it opens directly from disk, via python -m http.server, or on any static host. Generated pages set data-theme="amber" and data-font="stroke" on <html>, wrap content in .mk-document, and load:
<link rel="stylesheet" href="../assets/altium-monkey-docs.css">