# Documentation that works as a handbook [Handbook](README.md) ยท [Skill arguments](skill-usage.md) The HTML handbook is generated from the same Markdown you review in Git. It adds chapter navigation, search, on-page links, copyable code and responsive reading layouts. Markdown remains the source of truth; generated pages are not edited manually. ## Design system | Element | Choice | Purpose | |---|---|---| | Reading surface | Paper #fbfcfe, ink #172e3c | Long-form technical reading without a marketing layout | | Chapter rail | Deep slate #173c4c | Persistent orientation across guides | | Links and decisions | Blue #17699e, teal #087c73 | Navigation and important procedure boundaries | | Typography | Local Avenir Next / Segoe UI; monospace for exact code | No downloaded fonts or network dependency | | Layout | Left chapters, focused article, right contents | Support discovery and return visits; collapse navigation on small screens | The distinctive element is the engineering workflow sequence, not a decorative hero. Tables compare alternatives or inputs; callouts distinguish prerequisites and verification limits. Motion is limited to direct interaction. Keyboard focus, mobile reading and reduced-motion behavior are built into the theme. ## Author a page Start with the task and a short explanation. Provide a usable example before exhaustive reference. Group information by decisions the reader makes. Use headings for navigation, tables for parallel inputs/options, numbered lists only for actual sequences, and fenced code for exact copyable commands. Use `` and `[value]` only with the [argument convention](skill-usage.md). Required before execution is different from optional at invocation. Prefer concrete examples marked illustrative; never show a placeholder as an executed result. ```text # A task-focused page title Brief purpose and when to use it. ## Start Minimal usable example and prerequisites. ## Inputs Required/conditional/optional information and omission behavior. ## Verify Actual checks, expected interpretation and limits. ## Recover Owned cleanup, rollback, unresolved blockers and next action. ``` GitHub-style Note/Important/Warning/Tip blockquotes render as callouts. Tables, inline/fenced code, links/images, headings and simple lists are supported. A strictly linear `flowchart LR` Mermaid sequence renders as a semantic workflow list; other Mermaid remains code rather than pretending to render a graph. Raw HTML is escaped. This is a documented restricted renderer, not complete GitHub-flavored Markdown or a general HTML sanitizer. ## Build and check From the source checkout or generated application root: ```sh python3 .claude/framework/docs.py python3 .claude/framework/docs.py --check ``` Open docs/site/index.html directly in a browser. No npm/pip installation, server, CDN, account or deployment is required. Search/copy/mobile menu use local JavaScript; all guide content is generated HTML and remains readable without it. Automatic clipboard access depends on browser permissions; failure offers manual copying rather than reporting false success. The builder owns its generated files through docs/site/manifest.json and refuses modified/unowned collisions or symlink output paths. It is not crash-safe or a concurrent-writer lock. It reads linked local documentation/attachments, blocks known private/local paths and external images, and does not execute Markdown/code blocks. Source content still needs review for secrets before publication; no content scanner or arbitrary SVG/security guarantee is claimed. The clean boilerplate includes the same theme, builder and generated handbook. Run the command again after editing application Markdown. New project content/requirements remain yours; framework history and tests are not copied merely to style the output. Existing projects should choose their own publication/auth model: this task does not publish to GitHub Pages or another service. ## Keep it honest Search results are local document matches, not AI answers. The UI distinguishes native mechanisms from helper behavior and actual execution evidence. A polished layout cannot upgrade UNVERIFIED claims into VERIFIED results. See the [verification guide](verification.md) and current validation reports for actual observations. ## Optional browser QA With Node and an already-installed Chrome, maintainers can run scripts/check_docs_browser.mjs against a generated index.html. The script creates an isolated temporary browser profile, uses local files, captures desktop/mobile screenshots and checks search/copy/menu/keyboard behavior. It never installs a browser, uses an existing signed-in profile or publishes a site. See [UI qualification](../reports/DOCUMENTATION-SITE-VALIDATION.md) for actual observations and limits. ## Optional localhost preview ```sh python3 .claude/framework/serve_docs.py --port 8000 ``` Open http://localhost:8000/docs/index.html for the handbook or http://localhost:8000/docs/skill-dashboard/index.html for Skill Lab (generate the dashboard first). The helper finds its project independently of the shell working directory. It binds to loopback and serves only generated handbook/dashboard files; it does not build, mutate or expose the whole project. Use --root PATH for another generated workspace and Ctrl+C to stop. If port 8000 is occupied, stop your old preview or choose --port 8001. A plain `python3 -m http.server --directory docs/site` depends on the shell directory and serves the handbook at /index.html instead. Local preview fix evidence: [HTTP routing and export checks](../reports/DOCS-PREVIEW-VALIDATION.md).