Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Simple Markdown to HTML documentation rendering
Docket is a Rust command-line tool that renders a folder of Markdown files into a static HTML documentation site, positioned as a simple, zero-configuration clone of the Python tool d. It reads a docs/ directory containing Markdown pages and outputs a complete, deployable site into a docs/build/ subfolder, ready for GitHub Pages or any static web server. The tool is installed with Cargo and is designed for programmers who want documentation generated directly from their existing Markdown files without templates, themes, or build configuration.
Docket is a binary written in Rust that converts a directory of Markdown files into a static HTML site. It accepts a docs/ folder containing index.md and additional Markdown pages, then produces an output site in docs/build/. The tool uses pulldown-cmark for Markdown parsing, Syntect for syntax highlighting, and Docopt for command-line argument parsing. It is maintained on GitHub and can be installed with cargo install docket.
docs/ folder and executing docket in that folder renders the site immediately.cargo install docket.watch Cargo feature watches the source files and regenerates the output folder automatically when changes are made.par_render feature uses the Rayon crate to render pages in parallel, speeding up builds on multi-core machines.docs/build/ directory containing the final HTML site, suitable for direct deployment to GitHub Pages or any static host.docs/ folder into a static site and host it on GitHub Pages or any web server without touching configuration files.watch feature so the output regenerates each time a Markdown file is saved, ideal for local writing workflows.Create a new docs/ folder at the root of your repository and add an index.md file with a short Markdown description. Add additional pages as Markdown files, each starting with a level-1 heading that becomes the page title. Then change into the docs/ directory and run docket, which generates a docs/build/ folder containing the rendered site ready to publish.
Yes, Docket is an open-source project published on GitHub and available through Cargo. You can install it with cargo install docket and use it without any licensing fees.
No, Docket is designed to be zero-configuration. You only need to place Markdown files in a docs/ folder and run docket from that folder; the default behavior produces a working static site.
Yes, Docket includes an optional Cargo feature called watch which is enabled by default. With this feature, Docket watches the source Markdown files and regenerates the output folder whenever changes are detected.
Docket uses the pulldown-cmark library for Markdown parsing, which provides CommonMark-compliant rendering. Code blocks receive syntax highlighting through the Syntect library, which supports a wide range of programming languages.
Run cargo install docket in your terminal. Docket has two default Cargo features, watch and par_render; you can disable either with --no-default-features and enable only what you need to reduce compilation time.
