docgen
A documentation site generator for developers who want a fast, readable site without pulling in a framework.
pnpm add @erikt/docgenRuns 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 in the browser via MicroLighter, using the CSS Custom Highlight API with accurate language grammars.
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/docgenCreate 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