docgen
A documentation site generator for developers who want a fast, readable site without pulling in a framework.
pnpm add @erikt/docgen
Runs TypeScript directly via Node.js ≥23.6. No tsc, no esbuild, no config.
Drop a .md or .ts file in
pages/ and it becomes a route. No config required.
docgen build writes plain HTML files deployable to GitHub
Pages or any static host.
Code blocks are highlighted at build time via Shiki with accurate language grammars and light/dark themes.
Follows the system preference out of the box, with a toggle that persists across visits.
Full-text search across all pages powered by MiniSearch — no server, no indexing pipeline.
Quick start
pnpm add @erikt/docgen
Create docs.config.ts in your project root.
import { defineDocs } from "@erikt/docgen";
export default await defineDocs({
structure: [{ label: "Guide", path: "/guide", icon: "book" }],
});
pnpm docgen dev
# listening on http://localhost:5151