Skip to content
/ docmd Public

Generate minimal, fast & beautiful docs from Markdown. No React, no bloat, just content. Built for developers.

License

Notifications You must be signed in to change notification settings

mgks/docmd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 


docmd logo

The minimalist, zero-config documentation generator for Node.js developers.
Turn Markdown into beautiful, blazing-fast websites in seconds.

npm version npm downloads license stars

View Live Demo β€’ Documentation β€’ Report Bug


519536477-8d948e18-8e2d-420d-8902-96e1aafab1ba-modified docmd noStyle page preview in dark mode

πŸš€ Why docmd?

Most documentation tools today are too heavy (React hydration, massive bundles) or require ecosystems you don't use (Python/Ruby).

docmd fills the gap. It is a native Node.js tool that generates pure, static HTML.

  • ⚑ Blazing Fast: No hydration delay. Instant page loads.
  • πŸ” Offline Search: Powerful full-text search included automatically.
  • πŸ›  Zero Config: Works out of the box with sensible defaults.
  • 🎨 Theming: Built-in light/dark modes and multiple themes (sky, ruby, retro).
  • πŸ“¦ Node.js Native: No Python, no Gemfiles. Just npm install.
  • 🧩 Rich Content: Built-in support for Callouts, Cards, Tabs, Steps, and Changelogs.

🏁 Quick Start

You don't need to install anything globally to try it out.

# 1. Initialize a new project
npx @mgks/docmd init my-docs

# 2. Enter directory
cd my-docs

# 3. Start the dev server
npm start

Dev server output:

                       
     _                 _ 
   _| |___ ___ _____ _| |
  | . | . |  _|     | . |
  |___|___|___|_|_|_|___|
  
   v0.x.x


πŸš€ Performing initial build for dev server...
βœ… Generated sitemap at ./site/sitemap.xml
βœ… Initial build complete.
πŸ‘€ Watching for changes in:
    - Source: ./docs
    - Config: ./docmd.config.js
    - Assets: ./assets
    - docmd Templates: ./src/templates (internal)
    - docmd Assets: ./src/assets (internal)
πŸŽ‰ Dev server started at http://localhost:3000
Serving content from: ./site
Live reload is active. Browser will refresh automatically when files change.

✨ Features

Feature Description
Markdown First Standard Markdown + Frontmatter. No proprietary syntax to learn.
Smart CLI Intelligent config validation catches typos before they break your build.
Custom Containers Use ::: callout, ::: card, ::: steps, ::: tabs, ::: collapsible, ::: changelog, and more to enrich content.
Smart Search Built-in, offline-capable full-text search with fuzzy matching and highlighting. No API keys required.
Diagrams Create flowcharts, relationship diagrams, journey, piecharts, graphs, timelines and more with Mermaid.
No-Style Pages Create custom landing pages (highly customizable custom HTML pages) without theme constraints.
Auto Dark Mode Respects system preference and saves user choice.
Plugins SEO, Sitemap, and Analytics support included out-of-the-box.

πŸ†š Comparison

How does docmd stack up against the giants?

Feature docmd Docusaurus MkDocs (Material) Mintlify
Language Node.js React.js Python Proprietary
Output Static HTML React SPA Static HTML Hosted / Next.js
JS Payload Tiny (< 15kb) Heavy Minimal Medium
Setup ~2 mins ~15 mins ~10 mins Instant (SaaS)
Cost 100% Free OSS 100% Free OSS 100% Free OSS Freemium

πŸ‘‰ Read the full comparison

πŸ“¦ Installation

For frequent use, install globally:

npm install -g @mgks/docmd

Commands

  • docmd init - Create a new documentation project.
  • docmd dev - Start the live-reloading local server.
  • docmd build - Generate static files to site/ for deployment.

🎨 Themes

Switching themes is as easy as changing one line in your docmd.config.js.

module.exports = {
  theme: {
    name: 'sky', // Options: 'default', 'sky', 'ruby', 'retro'
    defaultMode: 'dark'
  }
}

🀝 Contributing

We welcome contributions! Please see our Contribution Guidelines for details.

  1. Fork the repository.
  2. Create your feature branch (git checkout -b feature/AmazingFeature).
  3. Commit your changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

❀️ Support

This project is open source and free to use. If you find it valuable, please consider:

  1. ⭐️ Starring the repo on GitHub (it helps a lot!)
  2. β˜• Sponsoring the project to support ongoing development.

πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.

About

Generate minimal, fast & beautiful docs from Markdown. No React, no bloat, just content. Built for developers.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages