Skip to main content

dokk logo

dokk

A tiny static docs generator in Python.
Write Markdown, push, and get a docs site on GitHub Pages, with search, dark mode and components included.

Live demo and docs · Quick start · Components · Themes · Theme showcase · PyPI

A dokk site: sidebar, page actions, a file tree and the on-this-page list

Quick start

pip install "dokk[serve,search]"
dokk init --root my-docs
dokk serve --root my-docs     # http://127.0.0.1:8002/

Open http://127.0.0.1:8002/, edit my-docs/docs/index.md and the page reloads. Add more .md files and folders and they show up in the sidebar.

dokk build writes plain HTML to .dokk/build/, ready for GitHub Pages or any static host. dokk init also creates a workflow that publishes it on every push.

Why dokk

  • One install, nothing to assemble. Search, dark mode, a sidebar, code highlighting and components work out of the box; no theme or plugins to pick.
  • Plain Markdown. Your docs stay readable on GitHub and in any editor; components are short :::note blocks, not HTML.
  • Fast. A thousand pages build in about a second and a half; dokk serve rebuilds on every save.
  • Static and private. Plain HTML with every asset bundled: no CDN, no tracking, no server.

What you get

  • A sidebar built from your folder tree, or arranged in dokk.toml.
  • Markdown with tables, footnotes, task lists, definition lists and heading anchors.
  • Components as Markdown directives: callouts, tabs, cards, steps, file trees, badges and more.
  • Code highlighting at build time, in light and dark.
  • Full-text search with Pagefind, fully static.
  • Eight Basecoat styles and the shadcn/ui colors, vendored: no CDN, no third-party requests.
  • dokk serve with live reload, dokk check for broken links and anchors, and dokk format to keep the Markdown tidy.
  • A sitemap, a Markdown copy of every page and optional llms.txt, for search engines and AI tools.

The documentation is built with dokk from the docs/ folder in this repository.

Development

Install everything (dev tools, dev server, search, browser tests):

uv sync --all-extras          # .venv with the exact versions from uv.lock
uv run playwright install chromium   # once, for the browser tests in tests/e2e

Run tools through make (below) or activate .venv. Plain uv sync without --all-extras removes the extras again.

Run the checks:

make lint        # all of the below
make format      # ruff: fix lint issues, then format
make typecheck   # ty
make test        # pytest

Serving the sites

The repo has two sites. Without --root, dokk uses the current folder.

Site What it is Serve it with
docs/ dokk's own documentation dokk serve --port 8001 --search
examples/basic/ Acme Widgets, a fictional site that uses every feature and component; the fixture for the tests dokk serve --root examples/basic --port 8002 --search

dokk serve rebuilds on every change and reloads the browser. It includes draft pages and ignores the base path; --search also rebuilds the search index.

To look at a production build instead:

dokk build --root examples/basic
python -m http.server 8002 -d examples/basic/.dokk/build

Releasing

The version comes from the git tag (hatch-vcs); there is nothing to bump. Push a tag such as v0.0.2 and .github/workflows/release.yml builds the wheel and sdist and tests the wheel. Once the pypi environment is approved, it publishes to PyPI and creates the GitHub release. CI tests Linux, macOS and Windows on every push.

Vendored assets

Basecoat and the shadcn/ui color themes are vendored; see VENDORED.md. Update them with python scripts/vendor_basecoat.py and python scripts/vendor_shadcn_themes.py.

Metadata

Release files for dokk 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dokk 0.0.5
File Size Uploaded Provenance Actions
dokk-0.0.5.tar.gz 265.4 kB With provenance Details for dokk-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dokk 0.0.5
File Interpreter ABI Platform Actions
dokk-0.0.5-py3-none-any.whl Python 3 none any Details for dokk-0.0.5-py3-none-any.whl

Total release size: 573.2 kB

Release files / dokk-0.0.5.tar.gz

Download URL dokk-0.0.5.tar.gz
Size 265.4 kB
Tags Source
SHA-256 checksum
How to use checksums
20e006f887f5b222cb203b907c4968018426c634a50d4350d51184d60f2a0a14
BLAKE2b-256 checksum
How to use checksums
e5952774aebc022e8ab80488d47504d6e9893476c3071fa4f400e6207891a892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / dokk-0.0.5-py3-none-any.whl

Download URL dokk-0.0.5-py3-none-any.whl
Size 307.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34b948dd9428170274d2e96dfa8085197faf49f10e5979cf955a815e148bf9c2
BLAKE2b-256 checksum
How to use checksums
6940a95ed12bc8036964d5c5cdcb1d72efa9def618e44cc7930d6556b0969411
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for dokk 0.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for dokk-0.0.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page