Skip to content
chiltepin
chiltepin docs
CLI

Output commands

Turn docs into standalone HTML pages, slide decks, PDFs, or a full static site.

Rendered output is self-contained HTML — styles and SVG diagrams inlined, no runtime JavaScript, about 180 KB for a page. One look, dark by default; colorScheme in chiltepin.config.json switches it (see Generate & configure). Print and PDF are always light.

chiltepin <file.md>

Render one doc and open it in your browser — the fastest preview. The same as chiltepin html <file> -p.

chiltepin docs/orders.md

chiltepin html

Render one doc to a standalone HTML file.

chiltepin html docs/orders.md               # writes docs/orders.html next to the source
chiltepin html docs/orders.md -o out.html   # choose the output path
chiltepin html docs/orders.md -p            # render to a temp file and open it
chiltepin html docs/orders.md --size lg     # page width: sm 720 · md 960 · lg 1280 · xl 1600 px

chiltepin slides

Render one doc to a self-contained slide deck — one slide per heading. See Present commands and Slides & decks.

chiltepin slides docs/plan.md -p            # open the doc as a deck
chiltepin slides docs/plan.md -o deck.html  # write the deck to a file

chiltepin pdf

Render one doc to a PDF.

chiltepin pdf docs/plan.md                  # → docs/plan.pdf
chiltepin pdf docs/plan.md -o out/plan.pdf  # choose the output path

Chromium downloads automatically on first use (about 100 MB, once). To install it ahead of time: npx playwright install chromium.

chiltepin build

Build a static site from all docs — an index page, sidebar navigation, cross-doc links, and a Doc | Slides toggle on every page.

chiltepin build                    # → dist/    (--out <dir>)
chiltepin build --no-rich-index    # the plain card-grid index instead of the TLDR + doc map

The live demo on this site is exactly this: chiltepin build run on this repo's own docs.

A live local site

Want to browse the built site while you edit? In chiltepin studio, Site ↗ opens the same site chiltepin build produces in a new tab — one click away, rebuilt on every save.