altium monkey v2026.11.26 · gobblerito
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:

  1. No external static-site generator or Node build toolchain is required.
  2. Markdown files remain readable directly on GitHub and by LLM tooling.
  3. Generated HTML pages reuse the same --mk-* CSS variables and layout classes.
  4. Generated webfont files are static assets, not runtime dependencies.

Design Tokens

The stylesheet exposes stable Monkey Kit --mk-* variables for:

  1. background, panel, input, border, accent, text, and diagnostic colors
  2. phosphor-tuned syntax highlighting tokens (--mk-syn-*)
  3. Altium Stroke body/heading font stacks (data-font="stroke", data-font="stroke-sans", and data-font="stroke-serif") plus monospace code-block stacks (--mk-mono)
  4. 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:

  1. ../assets/fonts/altium-stroke.woff2
  2. ../assets/fonts/altium-stroke.woff
  3. ../assets/fonts/altium-stroke.ttf
  4. ../assets/fonts/altium-stroke.otf
  5. ../assets/fonts/altium-stroke-bold.woff2
  6. ../assets/fonts/altium-stroke-bold.woff
  7. ../assets/fonts/altium-stroke-bold.ttf
  8. ../assets/fonts/altium-stroke-bold.otf
  9. ../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:

powershell
uv run python tools\build_docs.py

The 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:

html
<link rel="stylesheet" href="../assets/altium-monkey-docs.css">
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)