Typst CLI Docs packages the most important command references, flags, and workflows for the Typst CLI into a single-page site. The site is generated with Next.js and renders Markdown content from content/cli-reference.md, making it easy to keep the documentation versioned and reviewable.
- Single-source content: Edit one Markdown file and instantly refresh the site.
- Responsive layout: Tailwind-powered design tuned for laptops, tablets, and phones.
- Static export ready: Build once, ship anywhere; great for GitHub Pages, Vercel, or any static host.
- Markdown rendering: Uses
react-markdownwith customised typography for Typst command examples.
- Node.js 20+ (Bun, pnpm, or npm all work)
- Optional: Bun ≥ 1.1 for faster local development
Install dependencies:
bun install
# or
pnpm install
# or
npm installbun run dev
# or pnpm dev / npm run devThen visit http://localhost:3000. Any edits to content/cli-reference.md hot-reload automatically.
- Main reference lives in
content/cli-reference.md. - The homepage layout is defined in
app/page.tsxand wraps the Markdown content with custom components. - Global styling lives in
app/globals.css. Modify Tailwind tokens or add custom classes there.
Tip: keep long examples fenced in code blocks to preserve formatting in the rendered page.
Create an optimized production build:
bun run buildTo produce a static export (for GitHub Pages or simple hosting):
bun run build
bunx next exportThe generated HTML lives in out/. Serve that directory with any static web server or deploy it to your preferred hosting provider.
- Fork or clone the repository.
- Create a branch for your changes.
- Run
bun run lint(ornpm run lint) before opening a pull request. - Describe which CLI version or feature your update targets so others can follow along.
- Typst for the typesetting system and CLI.
- Next.js, React, and Tailwind CSS for the web stack.
This project is community-maintained and not an official Typst project.