ID:WORK-035Status:done
plan serve and plan build Commands
Priority:mediumComplexity:complexSource:SPEC-022
plan serve and plan build Commandse900a90f262d7bfb5872230b2ae0Dev server with hot reload (serve) and static site generation (build). Renders plan files as themed HTML pages with navigation, cross-reference links, status badges, and aggregate dashboard views using backlog and decision-log runes.
These commands share 90% of their pipeline — serve wraps it in a dev server with file watching, build writes the output as static HTML.
plan serve starts a dev server rendering plan files as themed HTML pagesindex.md exists (uses backlog and decision-log runes)plan build generates a self-contained static HTML site to --out directory--theme option selects default, minimal, or path to custom CSS--base-url for GitHub Pages deployment (prefix all URLs)backlog and decision-log runes for aggregate viewsBuild a lightweight rendering pipeline: scanner → entity registry → Markdoc parse → transform → identity transform → HTML template. Wrap entity pages in a shell template with navigation sidebar and theme CSS. For serve, use a simple HTTP server (Node http module) with fs.watch for hot reload. For build, write all pages to the output directory.