dock5 is a modern and beautiful Markdown documentation engine
- TypeScript 86.2%
- CSS 13.6%
- HTML 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| docs | ||
| examples | ||
| public | ||
| scripts | ||
| src | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| biome.json | ||
| index.html | ||
| LICENSE | ||
| package.json | ||
| pnpm-lock.yaml | ||
| pnpm-workspace.yaml | ||
| README.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
| vitest.config.ts | ||
Dock5
Dock5 turns a folder of Markdown files into a modern documentation site. It is designed to be easy to run, easy to host, and pleasant to read.
Highlights
- Works great on static hosting (including GitHub Pages)
- Generates navigation from your docs folder
- Fast SPA-style navigation
- Themeable UI
- No backend required
Requirements
- Node
20.19+or22.12+ pnpm
Quick Start
pnpm install
pnpm dev
This runs Dock5 using the default docs/ folder.
Use a Different Docs Folder
pnpm dev -- ./path/to/my-docs
# or
pnpm dev -- --docs ./path/to/my-docs
Build
pnpm build
pnpm preview
Build with a custom docs folder:
pnpm build -- ./path/to/my-docs
Production output goes to dist/.
Generate Docs Data Only
pnpm generate -- ./my-docs
Common Commands
pnpm dev- Start local developmentpnpm build- Build for productionpnpm preview- Preview the production buildpnpm generate- Generate docs datapnpm test- Run testspnpm lint- Run lint checkspnpm format- Format codepnpm typecheck- Run TypeScript checkspnpm check- Run all project checks
Markdown Behavior
title:in frontmatter is preferred for page titles- Otherwise, the first
#heading is used index.mdbecomes the folder page- If no
index.mdexists,README.mdis used as the folder page
Contributing
Contributions are welcome. Keep changes focused and include docs/tests when behavior changes.
Run pnpm check before submitting changes.