Watch
1
0
Fork
You've already forked dock5
0
dock5 is a modern and beautiful Markdown documentation engine
  • TypeScript 86.2%
  • CSS 13.6%
  • HTML 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-17 22:05:34 +01:00
.github/workflows chore: bump to 0.0.2 and improve project maintenance 2026-09-06 20:24:58 +02:00
docs Improve documentation reading experience 2026-11-17 18:42:09 +01:00
examples feat: add local search and standard Markdown processing 2026-09-07 00:41:53 +02:00
public chore(branding): set default app favicon to public icon 2026-02-15 17:06:31 +01:00
scripts Improve documentation reading experience 2026-11-17 18:42:09 +01:00
src Improve reading navigation, search and code copy feedback 2026-11-17 22:05:34 +01:00
.editorconfig chore(scaffold): init Vite+Preact+TS toolchain 2026-02-04 17:24:14 +01:00
.gitattributes fix: enforce LF line endings across platforms 2026-09-06 20:31:35 +02:00
.gitignore feat(build): isolate docs generation from source files via staging manifest 2026-02-15 17:06:09 +01:00
biome.json chore: bump to 0.0.2 and improve project maintenance 2026-09-06 20:24:58 +02:00
index.html chore(branding): set default app favicon to public icon 2026-02-15 17:06:31 +01:00
LICENSE Initial commit 2026-02-04 16:13:41 +01:00
package.json feat: add local search and standard Markdown processing 2026-09-07 00:41:53 +02:00
pnpm-lock.yaml feat: add local search and standard Markdown processing 2026-09-07 00:41:53 +02:00
pnpm-workspace.yaml fix: make dev reloads reliable and remove npm config warning 2026-09-07 15:11:15 +02:00
README.md chore: bump to 0.0.2 and improve project maintenance 2026-09-06 20:24:58 +02:00
tsconfig.json refactor(generator): migrate to TypeScript and default to docs/ 2026-02-06 11:43:51 +01:00
vite.config.ts fix: make dev reloads reliable and remove npm config warning 2026-09-07 15:11:15 +02:00
vitest.config.ts chore: bump to 0.0.2 and improve project maintenance 2026-09-06 20:24:58 +02:00

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+ or 22.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 development
  • pnpm build - Build for production
  • pnpm preview - Preview the production build
  • pnpm generate - Generate docs data
  • pnpm test - Run tests
  • pnpm lint - Run lint checks
  • pnpm format - Format code
  • pnpm typecheck - Run TypeScript checks
  • pnpm check - Run all project checks

Markdown Behavior

  • title: in frontmatter is preferred for page titles
  • Otherwise, the first # heading is used
  • index.md becomes the folder page
  • If no index.md exists, README.md is 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.