Generate beautiful, lightweight static documentation sites from Markdown files.
Zero clutter, just content.
Docmd is a Node.js command-line tool for generating fast, beautiful, and lightweight static documentation sites from standard Markdown files. It champions the philosophy of "zero clutter, just content," prioritizing a simple authoring experience and a clean, performant result for readers.
🚀 Live Preview: Official documentation site powered by docmd.
- Markdown First: Write your content in standard Markdown with simple YAML frontmatter.
- Beautiful Themes: Comes with multiple built-in themes (
sky,ruby,retro) and automatic light/dark mode support. - Fast & Lightweight: Blazing fast static site generation with a minimal client-side footprint.
- Rich Content: Go beyond basic Markdown with custom components like callouts, cards, steps, tabs, and Mermaid diagrams.
- Built-in Plugins: SEO meta tags, sitemap, and analytics are all included out-of-the-box.
- No-Style Pages: Create completely custom pages (like landing pages) with full control over the HTML.
- Customizable: Easily extend or override styles with your own CSS and JavaScript.
- Simple CLI: A straightforward workflow with three main commands:
init,dev, andbuild. - Deploy Anywhere: The generated
site/folder can be hosted on any static web host (GitHub Pages, Netlify, Vercel, etc.).
Prerequisites: Node.js (version 22.x or higher) is required.
This is the recommended approach for developers who will use docmd across multiple projects. It makes the docmd command available system-wide.
1. Install Globally:
npm install -g @mgks/docmd2. Basic Workflow:
Once installed, you can use the docmd command directly in any project folder.
-
Initialize a Project:
# This creates docs/, docmd.config.js, and a sample index.md docmd init -
Start the Dev Server:
# Starts a live-reloading server at http://localhost:3000 docmd dev -
Build for Production:
# Generates the static site into the `site/` directory docmd build
If you prefer not to install packages globally, you can use npx to run docmd on-demand. This is a great way to try it out or use it in a single project.
-
Create and Initialize Your Project: This command will download the latest version, create a
my-docsfolder, and set up the project files inside it.npx @mgks/docmd init my-docs
-
Start the Development Server: Navigate into your new project and use
npxagain to start the server.cd my-docs npx @mgks/docmd dev
Your new documentation site is now running at http://localhost:3000.
For a complete guide covering all features, including theming, custom containers, and plugin configuration, please visit the official documentation website: docmd.mgks.dev.
We welcome contributions of all kinds! Whether it's reporting a bug, suggesting a feature, or submitting a pull request, your help is appreciated.
- Fork the repository.
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/docmd.git - Install dependencies:
npm install - Make your changes and test them thoroughly.
- Submit a pull request to the
mainbranch.
Please check our contributing guidelines for more detailed information.
If you find docmd useful, please consider:
- Starring the repository on GitHub.
- Sharing it with others who might benefit.
- Reporting issues or submitting pull requests.
❤️ GitHub Sponsors: Become a sponsor to support the ongoing development of docmd.
Docmd is licensed under the MIT License.

