在几秒钟内从 Markdown 构建可立即使用的文档。没有 React,没有臃肿的内容,只有内容。
✦ 0.9 Series — Documentation for Humans and Machines
docmd compiles your Markdown into everything the modern stack needs — a fast static website for human readers, search indexes, AI context files (
llms.txt), MCP server endpoints for coding agents, and structured knowledge bundles (OKF) for RAG pipelines.One source. One build. Every output.
Run docmd in any folder with Markdown files — no install needed:
npx @docmd/core devhttp://localhost:3000…Navigation is generated from your file structure. No config file, no frontmatter required, no framework to learn.
When you're ready to ship:
npx @docmd/core buildThis outputs a highly optimized static site (SPA) ready for deployment to Vercel, Cloudflare Pages, Netlify, GitHub Pages, or any static host.
Requirements: Node.js 18+
Or install globally / via Docker# Install globally via npm
npm install -g @docmd/core
# Or via pnpm
pnpm add -g @docmd/core
# Run it
docmd dev # start dev server
docmd build # build for deploymentOr run via Docker:
docker run -p 3000:3000 ghcr.io/docmd-io/docmd:0.9.0Pin a version for reproducible builds.
Other documentation tools build a website. docmd builds an entire knowledge ecosystem:
Markdown source
│
▼ docmd
│
├──→ Static website (for browsers and readers)
├──→ Search index (offline full-text, no cloud needed)
├──→ llms.txt (for LLMs and chatbots)
├──→ OKF bundles (for RAG pipelines and knowledge systems)
├──→ Sitemap + SEO meta (for search engines)
├──→ robots.txt + OG tags (for crawlers and social cards)
├──→ MCP server (for IDE agents like Cursor, Claude Code)
└──→ Cloud Relay (hosted AI search for static sites)One source, one command. No other documentation tool generates all of these together.
**See Complete Comparison with Docusaurus, Mintlify and others →"
Point docmd at any Markdown folder and it runs. Navigation is built automatically from your file structure. You can write your first doc and have it live in under a minute — no boilerplate, no build pipeline to configure, no decisions to make upfront.
No framework runtime — the output is static HTML and minimal vanilla JavaScript. Pages navigate as an instant SPA. SEO-optimised, with sitemap, canonical URLs, and Open Graph metadata included. Offline full-text search is built in, no cloud service required.
docmd treats AI as a first-class way to consume documentation — without replacing the documentation itself.
@docmd/plugin-ai) — RAG-powered chat grounded in your documentation. Use your own API key or connect a local AI provider, with support for a wide range of 100+ providers through AIPlug.docmd mcp exposes your docs to AI agents over stdio, letting them search, read, and validate content directly.llms.txt / llms-full.txt) — complete documentation context generated at build time.…Core functionality is powered by a robust plugin system. The essentials are included by default, while optional plugins can be added for specific needs.
| Plugin | Status | Description |
|---|---|---|
ai |
Core | RAG-powered AI Assistant with BYOK, local providers, and Cloud Relay |
search |
Core | Offline full-text search (keyword + optional semantic via docmd-search) |
seo |
Core | SEO tags and Open Graph metadata |
sitemap |
Core | Generates sitemap.xml |
git |
Core | Git commit history and last-updated dates |
analytics |
Core | Lightweight analytics integration |
llms |
Core | AI context generation (llms.txt / llms-full.txt) |
okf |
Core | Open Knowledge Format bundles for AI agents (per-locale) |
mermaid |
Core | Mermaid diagram support |
openapi |
Core | Build-time OpenAPI 3.x spec renderer |
pwa |
Optional | Progressive Web App — offline navigation |
threads |
Optional | Inline discussion threads (by @svallory) |
math |
Optional | KaTeX / LaTeX math rendering |
Install optional plugins:
docmd add <plugin-name>Build your own: Plugin Development Guide
No configuration is required to get started. Add a docmd.config.json (or .ts / .js) in your project root only when you need more control:
{
"title": "My Project",
"url": "https://docs.myproject.com",
"src": "./docs",
"out": "./dist"
}TypeScript and JavaScript config files are supported for dynamic values.
Full reference: Configuration Overview
my-docs/
├── docs/ ← Your markdown files
├── assets/ ← Images and static files
├── docmd.config.json ← Optional configuration
└── package.jsonA browser-based editor for writing and previewing docs — no local setup required.
Try it at live.docmd.io
Use docmd in Node.js scripts, CI pipelines, or custom build steps. (Supports both CommonJS and ESM).
import { build } from '@docmd/core';
await build('./docmd.config.json', { isDev: false });Full reference: Node API
MIT License. See LICENSE for details.
暂无开放 Issues,或尚未同步最近议题。