Skip to content
Gauge

ax-check.com

docmd

docmd.io

ax-check.com

Checked 24 November 2026

B

78/100

Agents haven’t verified setup

Docs and setup are clear; docmd itself is free, open-source software.

16 of 23 checks passed: quickstart, CLI, MCP server and agent skills are all documented. No pricing page exists since the core tool is MIT-licensed and free.

3 fixes to start with

Concrete changes, backed by what we found.

Onboarding

Resolve the blocker that stopped agent setup.

Agents cannot progress through onboarding without human help. Provide an agent-accessible path through authentication and setup.

Docs

Return Markdown when clients request text/markdown.

Homepage returned text/html even when text/markdown was requested; no Markdown representation served.

Docs

List every offered API, MCP, and skills surface in /llms.txt.

llms.txt lists plugins but never mentions the offered MCP server or agent skills.

Recorded coding sessions

Same task, 3 models, no docmd.io account. Recorded 24 November 2026 on Pi.

3 recorded · 4m 12s

4m 12s · recorded

Session findings

Select a finding to see it in context.

piv0.84.2
modelQwen 3.8 Maxcwd/sandbox/repo
Help me build a simple example using docmd. Tell me how pricing works, and briefly tell me whether this product will be easy for you to manage. Let me know if you get blocked. If this product has no developer workflow you can act on, say so plainly and stop. Stay light: use the hosted product through its SDK or API. Do not start local service stacks or wait for long-running commands; if the quickstart requires either, say so plainly and stop.
Thinking…

Let me look at the repo to see what's there.

"docmd" — I need to figure out what this product is. Let me explore.

pwd; ls -la /sandbox/repo; cat /sandbox/repo/README* 2>/dev/null | head -50
/sandbox/repo
/sandbox/repo
total 16
drwxr-xr-x 3 root root 4096 Sep 18 08:00 .
drwxr-xr-x 7 root root 4096 Nov 24 02:58 ..
drwxr-xr-x 8 root root 4096 Sep 24 20:05 .git
-rw-r--r-- 1 root root  408 Sep 18 08:00 .gitignore
env | grep -i -E 'PI_|MODEL' | head -30
PI_CODING_AGENT=true
PI_CODING_AGENT=true
PI_REASONING_LEVEL=medium
PI_SESSION_FILE=/sandbox/.gauge/pi/sessions/2026-11-24T02-58-24-733Z_01a20b7d-835d-7693-852f-dceb07d14040.jsonl
ALG_INFERENCE_MODEL=accounts/fireworks/models/qwen3p8-max
PI_PROVIDER=gauge-fireworks
PI_MODEL=accounts/fireworks/models/qwen3p8-max
PI_SESSION_ID=01a20b7d-835d-7693-852f-dceb07d14040
PI_GATEWAY_API_KEY=unused
Thinking…

The repo is basically empty. The user asks about "docmd" — I need to determine what this product is. Possibly "Docmd" is a documentation tool? Let me check if there's any network access, and whether there's any credential/config for docmd.

Let me check git history and environment for API keys.

cd /sandbox/repo && git log --oneline -20; cat .gitignore; ls -la /sandbox; ls -la /sandbox/.gauge 2>/dev/null
9ebf5fb Initial workspace
9ebf5fb Initial workspace
# Keep generated and vendored files out of source diffs.

# Logs / OS cruft
*.log
.DS_Store

# JavaScript / TypeScript
node_modules/
.next/
dist/
build/
coverage/

# Python
.venv/
venv/
__pycache__/
*.py[cod]
.pytest_cache/
*.egg-info/

# Rust
target/

# Go / PHP / Ruby vendored deps
vendor/
.bundle/

# Java / Kotlin / Scala
.gradle/

# .NET
bin/
obj/

# Elixir
_build/
deps/

# Dart / Flutter
.dart_tool/
total 28
drwxr-xr-x  7 root root 4096 Nov 24 02:58 .
drwxr-xr-x 22 root root 4096 Sep 18 07:59 ..
drwxr-xr-x  3 root root 4096 Nov 24 02:58 .cache
drwxr-xr-x  3 root root 4096 Nov 24 02:58 .gauge
drwxr-xr-x  3 root root 4096 Nov 24 02:58 .pi
drwxrwxrwt  2 root root 4096 Sep 18 08:00 .tmp
drwxr-xr-x  3 root root 4096 Sep 18 08:00 repo
total 12
drwxr-xr-x 3 root root 4096 Nov 24 02:58 .
drwxr-xr-x 7 root root 4096 Nov 24 02:58 ..
drwxr-xr-x 3 root root 4096 Nov 24 02:58 pi
env | sed 's/=.*KEY.*/=<redacted>/' | sort | head -60; which docmd docmd-cli; pip list 2>/dev/null | grep -i docmd; npm ls -g --depth=0 2>/dev/null
AI_AGENT=pi
AI_AGENT=pi
ALG_INFERENCE_MODEL=accounts/fireworks/models/qwen3p8-max
ALG_INFERENCE_PROVIDER=fireworks
ALG_SANDBOX_PROVIDER=freestyle
AWS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
CARGO_HOME=/usr/local/cargo
CARGO_HTTP_CAINFO=/etc/ssl/certs/ca-certificates.crt
CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
DENO_CERT=/etc/ssl/certs/ca-certificates.crt
GIT_CONFIG_COUNT=1
GIT_CONFIG_KEY_0=safe.directory
GIT_CONFIG_VALUE_0=/sandbox/repo
GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/certs/ca-certificates.crt
HOME=/sandbox
INVOCATION_ID=ea7751890b49441889607d3e5e8afbde
JOURNAL_STREAM=8:5699
LANG=C.UTF-8
LOGNAME=root
NODE_COMPILE_CACHE=/sandbox/.cache/node-compile
NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/alg-gateway.crt
OLDPWD=/root
PATH=/sandbox/.pi/agent/bin:/usr/local/cargo/bin:/usr/local/go/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin
PIP_CERT=/etc/ssl/certs/ca-certificates.crt
PI_CODING_AGENT=true
PI_GATEWAY_API_KEY=unused
PI_MODEL=accounts/fireworks/models/qwen3p8-max
PI_PROVIDER=gauge-fireworks
PI_REASONING_LEVEL=medium
PI_SESSION_FILE=/sandbox/.gauge/pi/sessions/2026-11-24T02-58-24-733Z_01a20b7d-835d-7693-852f-dceb07d14040.jsonl
PI_SESSION_ID=01a20b7d-835d-7693-852f-dceb07d14040
PWD=/sandbox/repo
REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
RUSTUP_HOME=/usr/local/rustup
SHELL=/bin/bash
SHLVL=1
SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
SYSTEMD_EXEC_PID=1287
USER=root
_=/usr/bin/env
/usr/local/lib
├── @anthropic-ai/claude-code@2.1.280
├── @earendil-works/pi-coding-agent@0.84.2
├── @openai/codex@0.142.5
├── corepack@0.34.6
└── npm@10.9.8

Thinking…

No docmd CLI, no API keys for docmd. The repo is empty. "docmd" — what is it? Possibly a hosted product "Docmd" that doesn't exist, or is a niche documentation-as-code tool. There's no credentials in env. Let me check network access quickly to see if I can reach the internet, and whether docmd exists on npm/PyPI.

The user asks: "Tell me how pricing works" — I have no knowledge of docmd pricing. I shouldn't fabricate. Let me quickly check network.

cd /tmp && timeout 15 curl -s -o /dev/null -w "%{http_code}\n" https://registry.npmjs.org/docmd ; timeout 15 curl -s "https://registry.npmjs.org/-/v1/search?text=docmd&size=5" | head -c 1500; echo; timeout 15 curl -s https://pypi.org/pypi/docmd/json | head -c 400
404
404
{"objects":[{"downloads":{"monthly":100930,"weekly":27415},"dependents":"1","updated":"2026-11-23T21:57:45.147Z","searchScore":557.7911,"package":{"name":"@docmd/plugin-installer","keywords":["docmd","plugin","plugin-manager","installer","dependency-resolver","cli","dynamic-install","ecosystem","registry","developer-tools","documentation"],"version":"0.10.1","description":"Package installer and dependency resolver for docmd add and docmd remove commands.","sanitized_name":"@docmd/plugin-installer","publisher":{"email":"npm-oidc-no-reply@github.com","trustedPublisher":{"oidcConfigId":"7ee8faa2-ed77-4f6c-a990-6cc0ec59135f","id":"github"},"username":"GitHub Actions"},"maintainers":[{"email":"hello@mgks.dev","username":"mgks"}],"license":"MIT","date":"2026-11-16T17:55:26.925Z","links":{"homepage":"https://docmd.io","repository":"git+https://github.com/docmd-io/docmd.git","bugs":"https://github.com/docmd-io/docmd/issues","npm":"https://www.npmjs.com/package/@docmd/plugin-installer"}},"score":{"final":557.7911,"detail":{"popularity":1,"quality":1,"maintenance":1}},"flags":{"insecure":0}},{"downloads":{"monthly":100563,"weekly":27320},"dependents":"1","updated":"2026-11-23T22:01:51.599Z","searchScore":538.5613,"package":{"name":"@docmd/plugin-math","keywords":["docmd","plugin","math","katex","latex","mathematics","equations","formula","client-side","scientific","documentation","ssg"],"version":"0.10.1","description":"LaTeX mathematics plugin for docmd via KaTeX rendering.","sanitize
{"info":{"author":"","author_email":"","bugtrack_url":null,"classifiers":[],"description":"# docmd\n\nGenerate api-style github markdown-files from python docstrings.\n\n```\npip install docmd\n```\n\nGenerate one file:\n\n```\ndocmd my_module > README.md\n```\n\nGenerate a whole folder full of documentation:\n\n```\ndocmd my_module -out docs -url https://github.com/atakamallc/docmd/blob/master\n`
timeout 15 curl -s -o /dev/null -w "%{http_code}\n" https://docmd.io; timeout 15 curl -s -o /dev/null -w "%{http_code}\n" https://www.docmd.com; timeout 15 curl -s -o /dev/null -w "%{http_code}\n" https://api.docmd.com
Failed200
200
502
000


Command exited with code 6
Thinking…

There's docmd.io — a static site generator for documentation (CLI-based, docmd). It's an open-source-ish CLI (npm @docmd/*). The user said "Stay light: use the hosted product through its SDK or API. Do not start local service stacks."

Question: does docmd have a hosted product with an SDK/API? Let me check docmd.io docs. It appears docmd is a CLI static site generator (like mkdocs) — a local developer workflow, not a hosted API product. But maybe docmd.io offers hosting. Let me fetch the site.

timeout 20 curl -s https://docmd.io | sed -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | head -c 4000
<!--
<!--
 ---------------------------------------------------------------
 docmd : the zero-config documentation engine.
 @website https://docmd.io
 [docmd-source] - Please do not remove this header.
 ---------------------------------------------------------------
-->
 
 
 
 
 
 
 
 var root = "./";
 if (root && !root.endsWith('/')) root += '/';
 if (root === '') root = './';
 window.DOCMD_ROOT = root;
 window.DOCMD_APPEARANCE = "system";
 window.DOCMD_LOCALE = "en";
 
 
 
 
 
 docmd – Documentation for Humans and Machines 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{"@context":"https://schema.org","@type":"Organization","name":"docmd","url":"https://docmd.io","logo":"https://docmd.io/assets/images/docmd-logo-dark.png","sameAs":["https://github.com/docmd-io/docmd","https://x.com/docmd_io"]}
 
 
{"@context":"https://schema.org","@type":"WebSite","name":"docmd","url":"https://docmd.io/","potentialAction":{"@type":"SearchAction","target":"https://docmd.io/?q={search_term_string}","query-input":"required name=search_term_string"}}
 
 
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"docmd","operatingSystem":"Any","applicationCategory":"DeveloperApplication","url":"https://docmd.io","description":"docmd is an open-source documentation compiler. One Markdown source, one command – generates website, search index, AI context, MCP agent endpoints, and knowledge formats together.","creator":{"@type":"Person","name":"Ghazi","sameAs":["https://github.com/mgks","https://mgks.dev"]},"codeRepository":"https://github.com/docmd-io/docmd","releaseNotes":"https://github.com/docmd-io/docmd/releases","programmingLanguage":"Node.js","installUrl":"https://www.npmjs.com/package/@docmd/core"}
 
 
 
 
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', "G-W8BCN0W4RF");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 /**
 * --------------------------------------------------------------------
 * docmd : the zero-config documentation engine.
 *
 * @package @docmd/core (and ecosystem)
 * @website https://docmd.io
 * @repository https://github.com/docmd-io/docmd
 * @license MIT
 * @copyright Copyright (c) 2025-present docmd.io
 *
 * [docmd-source] - Please do not remove this header.
 * --------------------------------------------------------------------
 */
(function () {
 try {
 // 1. Determine Theme
 //
 // Resolve from three sources, in priority order:
 // 1. localStorage explicit user choice (light / dark)
 // 2. window.DOCMD_APPEARANCE (current canonical name, set by EJS templates)
 // 3. window.DOCMD_DEFAULT_MODE (legacy alias kept for pre-0.8.7 outputs)
 // 4. 'light' as the final fallback
 //
 // Note: localStorage is only honoured when it holds an explicit
 // 'light' or 'dark' value. A stored 'system' value (from a prior
 // session where the user picked "follow system") must NOT win over
 // a freshly resolved config value — the resolved value will itself
 // be 'system' in that case and the OS preference check below takes
 // over, so this is a no-op for the in-session behaviour but keeps
 // any future storage migration simple.
 var localValue = localStorage.getItem('docmd-theme');
 var configValue = window.DOCMD_APPEARANCE
 || window.DOCMD_DEFAULT_MODE
 || 'light';
 var theme = (localValue === 'light' || localValue === 'dark')
 ? localValue
 : configValue;
 if (theme === 'system') {
 theme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
 }
 // 2. Apply to Root
 document.documentElement.setAttribute('data-theme', theme);
 // 3. Highlight.js Toggle Strategy
 var lightLink = document.getElementById('hljs-light');
 var darkLink = document.getElementById('hljs-dark');
 if (lightLink && darkLink) {
 if (theme === 'dark') {
 lightLink.disabled = true;
 darkLink.disabled = false;
 } else {
 lightLink.disabled = false;
 darkLink.disabled = true;
 }
 }
 document.documentElement.style.visibility = "visible";
 }
timeout 20 curl -s https://docmd.io/robots.txt; echo ---; timeout 20 curl -s https://docmd.io/sitemap.xml | head -c 3000; echo ---; timeout 20 curl -s -o /dev/null -w "%{http_code}\n" https://docmd.io/docs
User-agent: *
User-agent: *
Allow: /

# Sitemap
Sitemap: https://docmd.io/sitemap.xml---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://docmd.io/assistant/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/</loc>
    <changefreq>weekly</changefreq>
    <priority>1</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/ai/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/analytics/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/git/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/iconify/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/llms/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/math/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/mdx/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/mermaid/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/okf/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/openapi/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/playground/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/pwa/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/search/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/seo/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/sitemap/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/threads/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/plugins/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/privacy/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/search/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/terms/</loc>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
  </url>
  <url>
    <loc>https://docmd.io/de/assistant/</loc>
    <changefreq>weekly</changefreq>
    <priority>---
404
Thinking…

So docmd is an open-source documentation compiler CLI (npm @docmd/core), MIT licensed, self-hosted/local build. Is there a hosted product with SDK/API? There is "assistant" page and "MCP agent endpoints" — those are generated by the CLI locally (MCP server runs locally?). Let me check the sitemap for a docs/getting-started/pricing page.

timeout 20 curl -s https://docmd.io/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<[^>]*>//g' | grep -v '/de/\|/fr/\|/es/' | sort -u
https://docmd.io/
https://docmd.io/
https://docmd.io/assistant/
https://docmd.io/ja/
https://docmd.io/ja/assistant/
https://docmd.io/ja/plugins/
https://docmd.io/ja/plugins/ai/
https://docmd.io/ja/plugins/analytics/
https://docmd.io/ja/plugins/git/
https://docmd.io/ja/plugins/iconify/
https://docmd.io/ja/plugins/llms/
https://docmd.io/ja/plugins/math/
https://docmd.io/ja/plugins/mdx/
https://docmd.io/ja/plugins/mermaid/
https://docmd.io/ja/plugins/okf/
https://docmd.io/ja/plugins/openapi/
https://docmd.io/ja/plugins/playground/
https://docmd.io/ja/plugins/pwa/
https://docmd.io/ja/plugins/search/
https://docmd.io/ja/plugins/seo/
https://docmd.io/ja/plugins/sitemap/
https://docmd.io/ja/plugins/threads/
https://docmd.io/ja/privacy/
https://docmd.io/ja/search/
https://docmd.io/ja/terms/
https://docmd.io/plugins/
https://docmd.io/plugins/ai/
https://docmd.io/plugins/analytics/
https://docmd.io/plugins/git/
https://docmd.io/plugins/iconify/
https://docmd.io/plugins/llms/
https://docmd.io/plugins/math/
https://docmd.io/plugins/mdx/
https://docmd.io/plugins/mermaid/
https://docmd.io/plugins/okf/
https://docmd.io/plugins/openapi/
https://docmd.io/plugins/playground/
https://docmd.io/plugins/pwa/
https://docmd.io/plugins/search/
https://docmd.io/plugins/seo/
https://docmd.io/plugins/sitemap/
https://docmd.io/plugins/threads/
https://docmd.io/privacy/
https://docmd.io/ru/
https://docmd.io/ru/assistant/
https://docmd.io/ru/plugins/
https://docmd.io/ru/plugins/ai/
https://docmd.io/ru/plugins/analytics/
https://docmd.io/ru/plugins/git/
https://docmd.io/ru/plugins/iconify/
https://docmd.io/ru/plugins/llms/
https://docmd.io/ru/plugins/math/
https://docmd.io/ru/plugins/mdx/
https://docmd.io/ru/plugins/mermaid/
https://docmd.io/ru/plugins/okf/
https://docmd.io/ru/plugins/openapi/
https://docmd.io/ru/plugins/playground/
https://docmd.io/ru/plugins/pwa/
https://docmd.io/ru/plugins/search/
https://docmd.io/ru/plugins/seo/
https://docmd.io/ru/plugins/sitemap/
https://docmd.io/ru/plugins/threads/
https://docmd.io/ru/privacy/
https://docmd.io/ru/search/
https://docmd.io/ru/terms/
https://docmd.io/search/
https://docmd.io/terms/
https://docmd.io/zh/
https://docmd.io/zh/assistant/
https://docmd.io/zh/plugins/
https://docmd.io/zh/plugins/ai/
https://docmd.io/zh/plugins/analytics/
https://docmd.io/zh/plugins/git/
https://docmd.io/zh/plugins/iconify/
https://docmd.io/zh/plugins/llms/
https://docmd.io/zh/plugins/math/
https://docmd.io/zh/plugins/mdx/
https://docmd.io/zh/plugins/mermaid/
https://docmd.io/zh/plugins/okf/
https://docmd.io/zh/plugins/openapi/
https://docmd.io/zh/plugins/playground/
https://docmd.io/zh/plugins/pwa/
https://docmd.io/zh/plugins/search/
https://docmd.io/zh/plugins/seo/
https://docmd.io/zh/plugins/sitemap/
https://docmd.io/zh/plugins/threads/
https://docmd.io/zh/privacy/
https://docmd.io/zh/search/
https://docmd.io/zh/terms/
Thinking…

No pricing page, no docs site (docs live on GitHub presumably). No hosted API/SDK — docmd is a local CLI compiler (npm install + docmd build), plus generated MCP endpoints served from your own static site. The user's constraints: "use the hosted product through its SDK or API", "If this product has no developer workflow you can act on, say so plainly and stop."

Let me verify: is there a hosted service (docmd cloud)? Check GitHub repo README quickly and whether npm @docmd/core exists. Also check assistant page (maybe a hosted chat). Let me be quick.

timeout 25 curl -s https://raw.githubusercontent.com/docmd-io/docmd/main/README.md | head -c 5000
<div align="right">
<div align="right">
  <sup>
    <b>EN</b> &nbsp;|&nbsp; <a href="./README.de.md">DE</a> &nbsp;|&nbsp; <a href="./README.zh.md">中文</a> &nbsp;|&nbsp; <a href="./README.es.md">ES</a> &nbsp;|&nbsp; <a href="./README.ja.md">日本語</a> &nbsp;|&nbsp; <a href="./README.fr.md">FR</a> &nbsp;|&nbsp; <a href="./README.ru.md">RU</a> &nbsp;|&nbsp; <a href="./README.tr.md">TR</a>
  </sup>
</div>

<div align="center">

  <a href="https://docmd.io">
    <picture>
      <source media="(prefers-color-scheme: dark)" srcset="https://github.com/docmd-io/docmd/blob/main/packages/ui/assets/images/docmd-logo-dark.png?raw=true" />
      <source media="(prefers-color-scheme: light)" srcset="https://github.com/docmd-io/docmd/blob/main/packages/ui/assets/images/docmd-logo-dark.png?raw=true" />
      <img src="https://github.com/docmd-io/docmd/blob/main/packages/ui/assets/images/docmd-logo-dark.png?raw=true" alt="docmd" width="210" />
    </picture>
  </a>

  <br/>

  <p>
    <b>Documentation for humans and machines.</b><br/>
    One Markdown source → website, search, AI context, agents, and knowledge formats.
  </p>

  <p>
    <a href="https://www.npmjs.com/package/@docmd/core"><img src="https://img.shields.io/npm/v/@docmd/core.svg?style=flat-square&color=CB3837" alt="npm version"></a>
    <a href="https://www.npmjs.com/package/@docmd/core?activeTab=versions"><img src="https://img.shields.io/npm/dm/@docmd/core.svg?style=flat-square&color=38bd24" alt="monthly downloads"></a>
    <a href="https://github.com/docmd-io/docmd"><img src="https://img.shields.io/github/stars/docmd-io/docmd?style=flat-square&logo=github" alt="GitHub stars"></a>
    <a href="https://github.com/docmd-io/docmd/blob/main/LICENSE"><img src="https://img.shields.io/github/license/docmd-io/docmd.svg?style=flat-square&color=A31F34" alt="license"></a>
  </p>

  <h4>
    <a href="https://docmd.io">Website</a> &nbsp;·&nbsp;
    <a href="https://docs.docmd.io">Documentation</a> &nbsp;·&nbsp;
    <a href="https://cloud.docmd.io">Cloud Relay</a> &nbsp;·&nbsp;
    <a href="https://live.docmd.io">Live Editor</a> &nbsp;·&nbsp;
    <a href="https://github.com/docmd-io/docmd-skills">Agent Skills</a> &nbsp;·&nbsp;
    <a href="https://github.com/docmd-io/docmd/issues">Issues</a>
  </h4>

  <br/>

  <a href="https://docmd.io">
    <img width="820" alt="docmd documentation — light and dark mode preview" src="https://raw.githubusercontent.com/docmd-io/docmd/refs/heads/main/assets/docmd-cover.webp" />
  </a>

</div>

## Quick Start

Point docmd at a folder of Markdown files:

```bash
npx @docmd/core dev
```

Open `http://127.0.0.1:3000`.

That's it. Navigation is generated from your file structure. No config file, frontmatter, or framework required.

When you're ready to deploy:

```bash
npx @docmd/core build
```

docmd generates a static site that can be deployed to Vercel, Cloudflare Pages, Netlify, GitHub Pages, S3, NGINX, Caddy, or any other static host.

**Requires Node.js 20+.**

<details>
  <summary><b>Global installation and Docker</b></summary>

<br/>

Install globally:

```bash
npm install -g @docmd/core

# or
pnpm add -g @docmd/core
```

Then:

```bash
docmd dev
docmd build
```

Or run with Docker:

```bash
docker run -p 3000:3000 ghcr.io/docmd-io/docmd:latest
```

> Pin the Docker image to a specific release for reproducible production builds.

</details>

## One Source. Every Output.

docmd is an open source documentation compiler.

Instead of treating your Markdown as input for a website alone, docmd compiles the same source into outputs for readers, search engines, LLMs, coding agents, and knowledge systems.

```text
Markdown
   │
   ▼
 docmd
   │
   ├── → Static documentation site
   ├── → Offline search index
   ├── → llms.txt / llms-full.txt
   ├── → Open Knowledge Format (OKF)
   ├── → Sitemap + SEO metadata
   ├── → robots.txt + Open Graph
   ├── → MCP interface for AI agents
   └── → AI Assistant context
```

One source tree. One build pipeline. No separate documentation and AI knowledge stacks to maintain.

## Why docmd?

Documentation increasingly has more than one reader.

People need a fast, navigable website. Search engines need structured metadata. LLMs need clean context. Coding agents need tools and protocols. RAG systems need structured knowledge.

docmd builds these together while keeping Markdown at the centre.

<a href="https://docs.docmd.io/comparison/">
  <img width="800" alt="docmd comparison with other documentation tools" src="https://raw.githubusercontent.com/docmd-io/docmd/refs/heads/main/assets/docmd-comparison.webp" />
</a>
<br/>
<b>See the complete comparison with <a href="https://docs.docmd.io/comparison/">Docusaurus, Mintlify and other documentation tools →</a></b>

## Features

### Zero config, instant start

Point docmd at any Markdown folder and it runs. Navigation is generated automatically from your file structure — no boilerplate, frontmatter, or b
timeout 20 curl -s https://docmd.io/assistant/ | sed -e 's/<script[^>]*>.*<\/script>//g' -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | head -c 2000
<!--
<!--
 ---------------------------------------------------------------
 docmd : the zero-config documentation engine.
 @website https://docmd.io
 [docmd-source] - Please do not remove this header.
 ---------------------------------------------------------------
-->
 
 
 
 
 
 
 
 var root = "../";
 if (root && !root.endsWith('/')) root += '/';
 if (root === '') root = './';
 window.DOCMD_ROOT = root;
 window.DOCMD_APPEARANCE = "system";
 window.DOCMD_LOCALE = "en";
 
 
 
 
 
 docmd Assistant – Offline and Cloud Documentation Assistant 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"docmd","item":"https://docmd.io/"},{"@type":"ListItem","position":2,"name":"docmd Assistant – Offline and Cloud Documentation Assistant","item":"https://docmd.io/assistant/"}]}
 
 
 
 
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', "G-W8BCN0W4RF");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 /**
 * --------------------------------------------------------------------
 * docmd : the zero-config documentation engine.
 *
 * @package @docmd/core (and ecosystem)
 * @website https://docmd.io
 * @repository https://github.com/docmd-io/docmd
 * @license MIT
 * @copyright Copyright (c) 2025-present docmd.io
 *
 * [docmd-source] - Please do not remove this header.
 * --------------------------------------------------------------------
 */
(function () {
 try {
 // 1. Determine Theme
 //
 // Resolve from three sources, in priority order:
 // 1. localStorage explicit user choice (light / dark)
 // 2. window.DOCMD_APPEARANCE (current canonical name, set by EJS templates)
 // 3. window.DOCMD_DEFAULT_MODE (legacy alias kept for pre-0.8.7 outputs)
 // 4. 'light' as the final fallback
 //
 // Note: localStorage is only honoured when it holds an explicit
 // 'light' or 'dark' value. A stored 'sy
Thinking…

There is a "Cloud Relay" at cloud.docmd.io and docs.docmd.io. Let me check cloud.docmd.io for pricing/API/SDK. But note: the core workflow is a local CLI (npx @docmd/core dev — a long-running dev server). The user said don't start local service stacks / long-running commands; if quickstart requires either, say so and stop.

Still, let me check cloud.docmd.io — is there a hosted API/SDK with pricing? Quick check.

timeout 25 curl -sL -w "\n[HTTP %{http_code} -> %{url_effective}]\n" https://cloud.docmd.io | sed -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | head -c 2500
docmd Cloud — Early Access Waitlist &amp; Developer Platform
 
 
 
 
 
 docmd Cloud — Early Access Waitlist &amp; Developer Platform 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', 'G-1EJDZ63YNG');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 docmd cloud 
 
 
 
 
 
 
 
 
 
 
 
 
 English 
 中文 
 Deutsch 
 Español 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 docmd.io 
 
 
 
 
 
 
 
 English 
 中文 
 Deutsch 
 Español 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 AI Relay &amp; Assistant Server Active 
 
 Document at the speed of thought. 
 AI-powered search, bring-your-own-key assistant setup, and effortless multilingual publishing for your documentation. 
 
 
 
 
 
 
 Docmd Cloud Today: AI Relay 
 Zero-latency AI assistant proxy, envelope-encrypted BYOK keys, and search gap telemetry for self-hosted sites. 
 
 
 
 
 
 
 
 Coming Soon: Full Cloud Platform 
 Automated Git deployments, instant PR preview links, team collaboration, and hosted doc analytics. 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Early Access Waitlist 
 
 Get Early Access to docmd cloud 
 Sign in with GitHub or Google to join the waitlist and configure your documentation assistant. 
 
 
 
 
 
 
 Continue with GitHub — Join Waitlist 
 
 
 
 
 
 
 
 
 Continue with Google — Join Waitlist 
 
 
 
 By signing in, you agree to our 
 Terms of Service 
 and 
 Privacy Policy .
 
 
 
 
 OR JOIN VIA EMAIL 
 
 
 
 
 
 Or Join Waitlist with Email 
 
 Get early access invitations and roadmap updates sent directly to your inbox before general rollout.
 
 
 
 
 
 
 
 
 
 
 
 
 
 Select your use case 
 Individual Developer 
 Engineering Team / Startup 
 Open Source Maintainer 
 Enterprise 
 
 
 
 Request Invite 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 Dashboard 
 
 
 
 
 Projects 
 
 
 
 
 
 
 
 
 Settings 
 
 
 
 
 
 
 Report Issue 
 
 
 
 
 
 
 
 
 
 Overview Dashboard 
 Zero-latency AI infrastructure, vector relay status, and active project overview. 
 
 + Create Project 
 
 
 
 
 
 
 AI Relay Server Active 
 
 Docmd Cloud is currently in AI Relay Mode 
 
 Your account manages BYOK encryption keys, custom domains, and zero-data-retention AI search telemetry for self-hosted docmd sites. Full cloud documentation hosting, Git push deployments, and preview branches are under active development.
 
 
 
 
 
 Enlist for Full Cloud Access 
 
 
 
 
 
 
 
 Active Projects 
 
 
 0 / 5 
 Max 5 projects per account 
 
 
 
 AI Queries Routed 
 
 
 0 
 Across all active projects · 0m
timeout 25 curl -s https://docs.docmd.io/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<[^>]*>//g' | grep -iv '/de/\|/fr/\|/es/\|/ja/\|/zh/\|/ru/' | head -60
https://docs.docmd.io/comparison/
https://docs.docmd.io/comparison/
https://docs.docmd.io/configuration/cookie-consent/
https://docs.docmd.io/configuration/layout-ui/
https://docs.docmd.io/configuration/localisation/
https://docs.docmd.io/configuration/localisation/translated-content/
https://docs.docmd.io/configuration/localisation/ui-strings/
https://docs.docmd.io/configuration/menubar/
https://docs.docmd.io/configuration/navigation/
https://docs.docmd.io/configuration/overview/
https://docs.docmd.io/configuration/redirects/
https://docs.docmd.io/configuration/security/
https://docs.docmd.io/configuration/site-banner/
https://docs.docmd.io/configuration/versioning/
https://docs.docmd.io/configuration/workspaces/
https://docs.docmd.io/configuration/zero-config/
https://docs.docmd.io/content/containers/buttons/
https://docs.docmd.io/content/containers/callouts/
https://docs.docmd.io/content/containers/cards/
https://docs.docmd.io/content/containers/changelogs/
https://docs.docmd.io/content/containers/collapsible/
https://docs.docmd.io/content/containers/embed/
https://docs.docmd.io/content/containers/grids/
https://docs.docmd.io/content/containers/hero/
https://docs.docmd.io/content/containers/
https://docs.docmd.io/content/containers/mermaid/
https://docs.docmd.io/content/containers/nested-containers/
https://docs.docmd.io/content/containers/playground/
https://docs.docmd.io/content/containers/steps/
https://docs.docmd.io/content/containers/tabs/
https://docs.docmd.io/content/containers/tags/
https://docs.docmd.io/content/containers/tooltip/
https://docs.docmd.io/content/frontmatter/
https://docs.docmd.io/content/live-preview/
https://docs.docmd.io/content/mdx/
https://docs.docmd.io/content/no-style-example/
https://docs.docmd.io/content/no-style-pages/
https://docs.docmd.io/content/syntax/advanced/
https://docs.docmd.io/content/syntax/code/
https://docs.docmd.io/content/syntax/images/
https://docs.docmd.io/content/syntax/
https://docs.docmd.io/content/syntax/linking/
https://docs.docmd.io/content/syntax/mdx/
https://docs.docmd.io/deployment/caddy/
https://docs.docmd.io/deployment/cloudflare-pages/
https://docs.docmd.io/deployment/deployer/
https://docs.docmd.io/deployment/docker/
https://docs.docmd.io/deployment/docmd-serve/
https://docs.docmd.io/deployment/firebase/
https://docs.docmd.io/deployment/github-action/
https://docs.docmd.io/deployment/
https://docs.docmd.io/deployment/netlify/
https://docs.docmd.io/deployment/nginx/
https://docs.docmd.io/deployment/starter-template/
https://docs.docmd.io/deployment/vercel/
https://docs.docmd.io/development/building-plugins/
https://docs.docmd.io/development/building-templates/
https://docs.docmd.io/development/engines/js/
https://docs.docmd.io/development/engines/overview/
https://docs.docmd.io/development/engines/python/
https://docs.docmd.io/development/engines/rust/
Thinking…

Key findings:

  • docmd is an open-source (MIT) local documentation compiler CLI. Its quickstart is npx @docmd/core dev — a long-running local dev server — or build + self-host static output. There is no hosted API/SDK to build against.
  • docmd Cloud (cloud.docmd.io) is an early-access waitlist: AI Relay (BYOK proxy) with OAuth sign-in; "Coming Soon: Full Cloud Platform". Max 5 projects per account shown in mockup dashboard. No public pricing page, no documented REST API/SDK for programmatic use, requires GitHub/Google OAuth sign-in and waitlist invite.

Let me quickly check if there's a pricing page in the docs sitemap (remaining entries) and whether cloud has an API.

timeout 25 curl -s https://docs.docmd.io/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<[^>]*>//g' | grep -iv '/de/\|/fr/\|/es/\|/ja/\|/zh/\|/ru/' | tail -60
https://docs.docmd.io/05/release-notes/0-5-0/
https://docs.docmd.io/05/release-notes/0-5-0/
https://docs.docmd.io/05/release-notes/0-5-1/
https://docs.docmd.io/05/release-notes/0-5-2/
https://docs.docmd.io/05/release-notes/0-5-3/
https://docs.docmd.io/05/release-notes/0-5-4/
https://docs.docmd.io/05/theming/assets-management/
https://docs.docmd.io/05/theming/available-themes/
https://docs.docmd.io/05/theming/custom-css-js/
https://docs.docmd.io/05/theming/customisation/
https://docs.docmd.io/05/theming/icons/
https://docs.docmd.io/05/theming/light-dark-mode/
https://docs.docmd.io/04/advanced/browser-api/
https://docs.docmd.io/04/advanced/client-side-events/
https://docs.docmd.io/04/advanced/node-api/
https://docs.docmd.io/04/cli-commands/
https://docs.docmd.io/04/comparison/
https://docs.docmd.io/04/configuration/general/
https://docs.docmd.io/04/configuration/layout-slots/
https://docs.docmd.io/04/configuration/navigation/
https://docs.docmd.io/04/content/containers/buttons/
https://docs.docmd.io/04/content/containers/callouts/
https://docs.docmd.io/04/content/containers/cards/
https://docs.docmd.io/04/content/containers/changelogs/
https://docs.docmd.io/04/content/containers/collapsible/
https://docs.docmd.io/04/content/containers/
https://docs.docmd.io/04/content/containers/nested-containers/
https://docs.docmd.io/04/content/containers/steps/
https://docs.docmd.io/04/content/containers/tabs/
https://docs.docmd.io/04/content/frontmatter/
https://docs.docmd.io/04/content/live-preview/
https://docs.docmd.io/04/content/no-style-example/
https://docs.docmd.io/04/content/no-style-pages/
https://docs.docmd.io/04/content/syntax/advanced/
https://docs.docmd.io/04/content/syntax/code/
https://docs.docmd.io/04/content/syntax/images/
https://docs.docmd.io/04/content/syntax/
https://docs.docmd.io/04/content/syntax/linking/
https://docs.docmd.io/04/contributing/
https://docs.docmd.io/04/deployment/
https://docs.docmd.io/04/getting-started/basic-usage/
https://docs.docmd.io/04/getting-started/installation/
https://docs.docmd.io/04/
https://docs.docmd.io/04/plugins/analytics/
https://docs.docmd.io/04/plugins/building-plugins/
https://docs.docmd.io/04/plugins/llms/
https://docs.docmd.io/04/plugins/mermaid/
https://docs.docmd.io/04/plugins/search/
https://docs.docmd.io/04/plugins/seo/
https://docs.docmd.io/04/plugins/sitemap/
https://docs.docmd.io/04/plugins/usage/
https://docs.docmd.io/04/recipes/custom-fonts/
https://docs.docmd.io/04/recipes/favicon/
https://docs.docmd.io/04/recipes/landing-page/
https://docs.docmd.io/04/recipes/writing-guide/
https://docs.docmd.io/04/theming/assets-management/
https://docs.docmd.io/04/theming/available-themes/
https://docs.docmd.io/04/theming/custom-css-js/
https://docs.docmd.io/04/theming/customisation/
https://docs.docmd.io/04/theming/icons/
https://docs.docmd.io/04/theming/light-dark-mode/
timeout 25 curl -s https://docs.docmd.io/llms.txt | head -c 3000
# docmd docs
# docmd docs

> Generated by docmd

## Overview

- [docmd Docs — Official Documentation, Guides & API Reference](https://docs.docmd.io/)
  Open-source documentation compiler. One Markdown source, one command, generates website, search, AI context, agent protocols, and knowledge formats together.

## 04

- [Browser API (Client-Side)](https://docs.docmd.io/04/advanced/browser-api/)
  How to use the docmd engine directly in the browser to render documentation dynamically without a server.
- [Client-Side Events](https://docs.docmd.io/04/advanced/client-side-events/)
  Hook into the docmd SPA router for custom interactive features.
- [Programmatic API](https://docs.docmd.io/04/advanced/node-api/)
  Programmatic API for building docmd sites from your own scripts.
- [CLI Commands](https://docs.docmd.io/04/cli-commands/)
  A complete reference guide to the docmd command-line interface and its available options.
- [Comparing Documentation Tools](https://docs.docmd.io/04/comparison/)
  See how docmd stacks up against Docusaurus, MkDocs, Mintlify, and other documentation generators.
- [General Configuration](https://docs.docmd.io/04/configuration/general/)
  Configure the core settings, layout, and appearance of your docmd site.
- [Layout & UI Slots](https://docs.docmd.io/04/configuration/layout-slots/)
  Master the structure of docmd by controlling headers, sidebars, and functional slots.
- [Navigation Configuration](https://docs.docmd.io/04/configuration/navigation/)
  Configure your sidebar links, nested groups, icons, and category labels.
- [Buttons](https://docs.docmd.io/04/content/containers/buttons/)
  Create call-to-action buttons for links, downloads, and external resources.
- [Callouts](https://docs.docmd.io/04/content/containers/callouts/)
  Highlight important information using semantic callout blocks.
- [Cards](https://docs.docmd.io/04/content/containers/cards/)
  Group content into visually distinct, framed boxes.
- [Changelogs](https://docs.docmd.io/04/content/containers/changelogs/)
  Create beautiful, timeline-based version history pages.
- [Collapsible](https://docs.docmd.io/04/content/containers/collapsible/)
  Create toggleable accordion sections for FAQs and advanced details.
- [Custom Containers](https://docs.docmd.io/04/content/containers/)
  A gallery of the rich UI components available in docmd.
- [Nested Containers](https://docs.docmd.io/04/content/containers/nested-containers/)
  Learn how to use the advanced nested container system to create complex, interactive documentation layouts with seamless container nesting.
- [Steps](https://docs.docmd.io/04/content/containers/steps/)
  Create beautiful numbered instruction lists for tutorials.
- [Tabs](https://docs.docmd.io/04/content/containers/tabs/)
  Organise content into switchable tabbed panes.
- [Frontmatter Reference](https://docs.docmd.io/04/content/frontmatter/)
  The complete guide to page-level metadata and configuration in docmd.
- [Live Preview & Browser Support](https:/
Thinking…

There's a Node API (programmatic) and Browser API — but these are local/library, not hosted. The hosted part is cloud.docmd.io = waitlist + AI Relay (BYOK proxy), with OAuth login required. No pricing page found. Let me quickly check the cloud site for pricing terms (search page for "pricing" / plans) and whether the AI Relay has a documented API endpoint.

timeout 25 curl -sL https://cloud.docmd.io | sed -e 's/<[^>]*>/ /g' | tr -s ' \n' ' \n' | grep -i -n -E 'pric|free|\$|plan|tier|per month|quota|limit|api|token|relay' | head -40
109: AI Relay &amp; Assistant Server Active
109: AI Relay &amp; Assistant Server Active 
119: Docmd Cloud Today: AI Relay 
261: Zero-latency AI infrastructure, vector relay status, and active project overview. 
270: AI Relay Server Active 
272: Docmd Cloud is currently in AI Relay Mode 
304: Cloud Platform Tier 
312: Relay &amp; Security Health 
342: Each project permits exactly one associated domain name (e.g., docs.example.com) used for authentication and AI assistant relay. 
377: Relay Requests 
382: Tokens Used 
387: Avg Relay Latency 
401: Relay Request Usage 
402: Daily request statistics through docmd cloud relay. 
454: Tokens Used 
509: API Key * 
540: How your API keys are protected 
563: Stored keys are strictly write-only. They are never sent back to the browser or returned in any API response. Neither third parties nor docmd engineers can view or retrieve your plaintext keys. 
620: Only one exact domain name is allowed per project, used to authenticate and enable AI assistant relay features. 
650: Deleting this project will revoke relay API key access and remove associated metadata.
662: Manage your account profile, plan quotas, and global authorization secrets. 
680: Account Quota & Usage 
683: Free Tier Allowance 
684: Free Relay 
696: Signing out will remove your active token from this device browser session.
720: Only one exact domain name is allowed per project, used to authenticate and enable AI assistant relay features.
timeout 25 curl -s https://docs.docmd.io/llms-full.txt -o /tmp/dfull.txt -w "%{http_code} %{size_download}\n"; grep -i -n -E 'cloud\.docmd|pricing|api key|relay' /tmp/dfull.txt | head -30
200 2548594
200 2548594
353:Most documentation generators push you toward third-party services like Algolia DocSearch. While Algolia is fantastic for enterprise scale, it requires API keys, crawler configurations, and sends user search data to external servers.
3323:| **Setup** | **Zero Config** (Automatic) | Complex (API Keys, CI/CD crawling) |
7754:| **Setup** | **Zero Config** (Automatic) | Complex (API Keys, CI/CD crawling) |
12870:| **Setup** | **Zero Config** (Automatic) | Complex (API Keys, CI/CD crawling) |
22636:| **Setup** | **Zero Config** (Automatic) | Complex (API Keys, CI/CD crawling) |
30993:4.  `get_config()`: Returns the resolved `docmd.config` — title, source and output directories, locales, versions, and enabled plugins. Sensitive values (API keys, analytics IDs) are stripped from the response.
34348:| Setup | Zero config (automatic) | API keys, CI crawling |
34357:`docmd-search` is a fully offline semantic search engine for documentation. It runs entirely in the browser, requires no server, no API keys, and sends nothing to anyone. It is not tied to docmd: you can plug it into any documentation engine or static site.
35636:| **`get_config`** | Retrieve the resolved `docmd.config` — title, source/output directories, configured locales, versions, and enabled plugins. Sensitive values (API keys, analytics IDs) are stripped from the response. |
35968:- **`get_config()`** — Returns the resolved `docmd.config` as a JSON object: title, source and output directories, configured locales, versions, and the list of enabled plugins. Sensitive values (API keys, analytics IDs) are reconstructed into a safe summary — raw secrets are never returned.
36894:docmd-search is a semantic search engine built for documentation sites. It runs entirely in the browser or CLI, requires no servers or API keys, and keeps all processing local.
38776:| **Zero-Config Cloud Relay** | ✅ | ❌ | ❌ | ❌ | ✅ (SaaS only) |
45630:The docmd AI Assistant provides readers with real-time, context-aware answers derived directly from your Markdown documentation. Powered by `@docmd/plugin-ai` and `aiplug`, the assistant performs Retrieval-Augmented Generation (RAG) using your site's pre-compiled search index while keeping API keys securely on the server side.
45636:2. You have an API key for your preferred provider (OpenAI, Anthropic, Gemini, DeepSeek, Groq, or Ollama).
45642:| Architecture | Best For | Backend Infrastructure | API Key Security |
45644:| **Free docmd Cloud Relay** | Static sites (GitHub Pages, Cloudflare Pages, Netlify, Vercel, S3) | Zero servers, powered by docmd's managed serverless relay | Hardware KMS encrypted at rest |
45650:## Strategy 1: Free docmd Cloud Relay (Zero Infrastructure)
45652:For static Jamstack hosting, docmd provides a free Cloud Relay platform at [cloud.docmd.io](https://cloud.docmd.io) that proxies requests securely without exposing your API keys or requiring you to maintain a Node.js backend.
45655:1. Go to [cloud.docmd.io](https://cloud.docmd.io) and log in.
45663:4. Enter your provider API key, click **Test Connection**, and click **Save Key & Configuration**.
45689:Now build and deploy your static files anywhere (GitHub Pages, S3, Cloudflare Pages). The client assistant automatically establishes a secure session via the relay.
45731:To maintain zero credential leakage, provider API keys are read exclusively from environment variables on your server:
46997:* **External URL Fetching & Cloud Portal Governance**: Fetches remote HTTP/HTTPS reference resources when enabled in `docmd.config.json` and permitted by docmd Cloud Relay governance policies.
46998:* **Conversation History Summarisation**: Invisible background compaction bounds context payloads within relay thresholds across extended dialogues, preventing payload truncation.
46999:* **Free docmd Cloud Relay**: Deploy on static hosts (GitHub Pages, Cloudflare Pages, Netlify, Vercel) without any backend server infrastructure.
47000:* **BYOK Server & KMS Security**: API keys are encrypted at rest via KMS in docmd Cloud or resolved server-side (`AI_API_KEY`, `OPENAI_API_KEY`), guaranteeing zero credential exposure in client web bundles.
47008:### Option A: Free docmd Cloud Relay (Static Sites)
47010:For static sites (GitHub Pages, Cloudflare Pages, Netlify, Vercel, S3), connect to docmd's free Cloud Relay service using your `projectId`:
47067:| `projectId` | `string` | `undefined` | Project ID from [docmd Cloud](https://cloud.docmd.io) for free serverless relay on static sites. |
47068:| `cloud` | `object` | `undefined` | Cloud relay options object (e.g. `{ "projectId": "docmd_ai..." }`). |
Thinking…

So the hosted piece: docmd Cloud Relay — free tier, requires OAuth login (GitHub/Google) at cloud.docmd.io, currently early-access waitlist for full cloud; AI Relay is "active". There's a free relay allowance ("Free Tier Allowance / Free Relay" in the mock UI). Pricing: free; you bring your own LLM provider key (you pay your provider). No published pricing tiers beyond "Free Relay" and quota shown as 5 projects max per account.

Can I act on a developer workflow without starting local stacks / long-running commands? The relay needs a projectId obtained via interactive OAuth login at cloud.docmd.io — I can't do that (no browser, no credentials). Also, the docmd quickstart is npx @docmd/core dev (long-running local server) — explicitly disallowed. npx @docmd/core build is a one-shot build though — that's not a service stack or long-running. But is that "the hosted product through its SDK or API"? No — build is local CLI. The user's instruction: "Stay light: use the hosted product through its SDK or API. Do not start local service stacks or wait for long-running commands; if the quickstart requires either, say so plainly and stop."

The official quickstart literally is npx @docmd/core dev → long-running local dev server. And there's no hosted API/SDK I can call without an OAuth-gated projectId. So per instructions: say so plainly and stop.

Should I attempt anything? Maybe I could verify quickly whether the build command works headless — but that contradicts "if the quickstart requires either, say so plainly and stop". I'll stop, but give useful info: pricing, manageability assessment.

Let me get a bit more precise pricing/quota facts from the docs to be accurate rather than vague. Check around line 46640-46700 and cloud page text near "Free Tier Allowance".

timeout 25 curl -sL https://cloud.docmd.io | sed -e 's/<[^>]*>/|/g' | tr -s ' \n' ' \n' | grep -i -A3 -B3 -E 'Free Tier Allowance|Free Relay|Cloud Platform Tier|5 projects' | head -60
||
 ||
 |
 |0 / 5|
 |Max 5 projects per account|
 |
 |
 |
--
 |
 |
 |
 |Cloud Platform Tier|
 |Priority Queue|
 |
 |Early Access Active|
--
 |
 |
 |Projects Management|
 |Manage your docmd projects, domain settings, and AI models (Max 5 projects).|
 |
 |+ Create Project|
 |
--
 |Account Quota & Usage|
 |
 |
 |Free Tier Allowance|
 |Free Relay|
 |
 |
 ||
 |
 |1 of 5 Projects Used|
 |
 |
 |
sed -n '46640,46700p' /tmp/dfull.txt
:::
:::

You can run `npx @docmd/core dev` immediately after migration to view your site.

## Feature Migration Support Matrix

| Feature | Automated Support | Details |
| :--- | :---: | :--- |
| **Markdown Files** | ✅ Yes | Moves all `.md` and `.mdx` content to `docs/` |
| **Directory Structure** | ✅ Yes | Preserves existing folder hierarchy |
| **Site Metadata** | ✅ Yes | Extracts site `title` and output directories |
| **Container Syntax** | ✅ Yes | Native support for VitePress and Docusaurus admonition containers |
| **Navigation / Sidebar** | ⚠️ Partial | Auto-translates MkDocs `nav:` blocks; other frameworks require `navigation.json` |
| **Localisation (i18n)** | ⚠️ Manual | Requires mapping directory locales in `docmd.config.json` |
| **Versioning** | ⚠️ Manual | Requires placing versioned content in `vXX/` subdirectories |
| **React / Vue Components** | ❌ Manual | Framework components must be replaced with native `docmd` containers |

::: callout success "Container Syntax Compatibility" icon:check-circle
Container syntax from **VitePress** (`:::tip`, `:::warning`, `:::danger`, `:::info`, `:::details`) and **Docusaurus** (`:::note`, `:::caution`) works out of the box. Existing admonitions render without manual editing.

**MkDocs** uses `!!!` syntax, which requires converting to standard `:::` format.
:::

## Navigation and Localisation Setup

Because each framework structures navigation sidebars, translations, and multi-versioning differently, `docmd` moves your raw content safely so you can configure navigation and i18n using `docmd`'s JSON schema:

- **Navigation:** Learn how to define sidebar links in the [Navigation Guide](../configuration/navigation.md).
- **Localisation:** Configure multi-language documentation in the [Localisation Guide](../configuration/localisation/index.md).
- **Versioning:** Structure versioned documentation in the [Versioning Setup](../configuration/versioning.md).

## Supported Migration Targets

::: grids
    ::: grid
        ::: card "Docusaurus" icon:arrow-right-left
        Migrate from Docusaurus v2/v3 React documentation sites.
        [Read Guide](./docusaurus.md)
        :::
    :::
    ::: grid
        ::: card "MkDocs" icon:arrow-right-left
        Migrate from MkDocs and Material for MkDocs Python projects.
        [Read Guide](./mkdocs.md)
        :::
    :::
    ::: grid
        ::: card "VitePress" icon:arrow-right-left
        Migrate from Vue-powered VitePress documentation setups.
        [Read Guide](./vitepress.md)
        :::
    :::
    ::: grid
        ::: card "Astro Starlight" icon:arrow-right-left
        Migrate from Astro Starlight framework projects.
        [Read Guide](./starlight.md)
        :::
    :::
:::


Thinking…

I have enough. Stop and report per instructions.

Summary:

  • Blocked / stopping: docmd has no actable hosted API/SDK workflow available to me.
    • docmd core = open-source local CLI (npx @docmd/core dev long-running dev server; build → static output you self-host). Quickstart requires a long-running local server → disallowed by your constraints.
    • The only hosted piece is docmd Cloud Relay (cloud.docmd.io): an AI-assistant proxy. It's gated behind interactive GitHub/Google OAuth sign-in + early-access waitlist, and needs a browser-created projectId per project bound to exactly one domain. No API key can be created programmatically, no public REST API/SDK docs, no credentials present in this sandbox.
  • Pricing: The Cloud Relay is presented as free ("Free Tier Allowance / Free Relay"), quota: max 5 projects per account, 1 domain per project; full cloud platform (Git deploys, PR previews, analytics) is "coming soon"/early-access waitlist, tier labeled "Cloud Platform Tier — Priority Queue / Early Access Active". Costs are BYOK: you supply your own OpenAI/Anthropic/Gemini/DeepSeek/Groq/Ollama key and pay that provider; docmd doesn't publish per-token or seat pricing. The CLI itself is MIT-licensed and free. Caveat: the cloud dashboard pages are largely a marketing/mock UI, so quota numbers aren't a contractual price sheet; no /pricing page exists.
  • Easy for me to manage? Mixed: content-side very easy (plain Markdown folder, zero config, generated nav, Node programmatic API + CLI, deterministic static build — I can write/edit Markdown and run one-shot builds fine). Not easy: anything requiring the dev server (long-running), and anything requiring cloud.docmd.io (interactive OAuth, waitlist, domain binding) — I can't drive those.
  • Nothing was written to the repo (still just .gitignore).

Offer option: if they lift the no-long-running constraint, I can do a one-shot npx @docmd/core build example (no dev server) — that would work. Actually that's worth offering: build is a one-shot command, not a service stack. But quickstart is dev. I'll offer it as an explicit next step requiring their OK.

Stopping here — plainly

I did not build an example, and I wrote nothing to /sandbox/repo (it's still just .gitignore + the initial commit). Reason: docmd has no hosted API/SDK workflow I can act on under your constraints.

What I verified (docs + registry + site, no installs, no servers):

  • docmd core is a local CLI, not a hosted service. @docmd/core (MIT, Node 20+, ~100k downloads/mo across the @docmd/* packages). The official quickstart is npx @docmd/core dev → a long-running local dev server on 127.0.0.1:3000, then npx @docmd/core build → static files you host (Vercel/Cloudflare/Netlify/GitHub Pages/S3/NGINX), or the Docker image ghcr.io/docmd-io/docmd:latest. So the quickstart requires exactly the thing you told me not to start.
  • The only hosted piece is docmd Cloud Relay (cloud.docmd.io), and it's not programmatically reachable:
    • Sign-in is interactive GitHub/Google OAuth, and the full platform is an early-access waitlist ("Cloud Platform Tier — Priority Queue / Early Access Active"; Git deployments, PR preview links, team collaboration, hosted analytics all listed as coming soon).
    • Today it's "AI Relay Mode" only: a proxy for the docmd AI assistant. Using it requires a browser-created projectId, and each project is bound to exactly one domain (e.g. docs.example.com) used to authenticate the relay. No credentials, no projectId, no API key exist in this sandbox, and there's no public REST/SDK reference for creating one headlessly.

Pricing

There is no pricing page (I checked docmd.io, docs.docmd.io sitemap, and cloud.docmd.io). What the product states:

  • CLI/compiler: free, open source, MIT.
  • Cloud Relay: free tier — the dashboard labels it "Free Tier Allowance / Free Relay", with max 5 projects per account and 1 domain per project.
  • Real cost is BYOK: you paste your own OpenAI / Anthropic / Gemini / DeepSeek / Groq / Ollama key (stored write-only, KMS/envelope-encrypted, never returned by the API) and pay your LLM provider directly. docmd publishes no per-token, per-seat, or paid-tier numbers.
  • Caveat: those quota figures come from the cloud marketing/dashboard UI, not a contractual price sheet, so treat "free + 5 projects" as current early-access state, not a stable published plan.

Will it be easy for me to manage?

Split answer:

  • Easy: the content and build side. Zero-config — point it at a folder of Markdown, nav is generated from the file tree, no frontmatter or framework required. There's a documented Node programmatic API and Browser API, docmd.config.json for config, a plugin system (@docmd/plugin-*: search, math, mermaid, openapi, llms, seo, sitemap…), and machine outputs I can consume directly without a browser (llms.txt, llms-full.txt, OKF, MCP endpoints, offline search index). I can write/edit Markdown and run one-shot build commands reliably.
  • Not easy: anything needing dev/watch mode (long-running), and anything needing cloud.docmd.io (interactive OAuth, waitlist invite, domain-bound projects). I can't drive those from here.

Unblock options

  1. Lift the "no one-shot local build" restriction and I'll scaffold a small Markdown docs tree plus a docmd.config.json and run npx @docmd/core build (single non-server command) to produce static output + llms.txt/MCP artifacts. No dev server involved.
  2. Or give me a Cloud Relay projectId (created by you via OAuth at cloud.docmd.io) and I'll wire the assistant config for a static deploy — though I still can't test the relay without your own provider key and a bound domain.
Thinking…

Let me do it. Check node version, install @docmd/core locally (npm install, one-shot), create docs tree, config, run build once.

Let me first check the CLI docs for config file format and build command flags. I have /tmp/dfull.txt (llms-full.txt) — grep for docmd.config.json schema and CLI commands.

node -v; npm -v; grep -n -i -E '^#+ .*(CLI Commands|Programmatic API)' /tmp/dfull.txt | head
v22.23.4
v22.23.4
10.9.8
180:## [Programmatic API](https://docs.docmd.io/04/advanced/node-api/) (04)
229:## [CLI Commands](https://docs.docmd.io/04/cli-commands/) (04)
4646:## [CLI Commands](https://docs.docmd.io/05/cli-commands/) (05)
9356:## [CLI Commands](https://docs.docmd.io/06/cli-commands/) (06)
14453:## [CLI Commands](https://docs.docmd.io/07/api/cli-commands/) (07)
35285:## [CLI Commands](https://docs.docmd.io/08/reference/cli-commands/) (08)
48894:## [CLI Commands](https://docs.docmd.io/09/reference/cli-commands/) (09)
62399:## [CLI Commands](https://docs.docmd.io/reference/cli-commands/) (Reference)
grep -n 'docmd.config.json' /tmp/dfull.txt | head -20
18630:├── docmd.config.json ← Central configuration script
18630:├── docmd.config.json     ← Central configuration script
18636:`docmd.config.json` (or `docmd.config.ts`) is the recommended, primary configuration format. The legacy `docmd.config.js` format remains supported but acts strictly as a fallback when `.json` or `.ts` configuration files are missing.
18659:├── docmd.config.json         ← Root configuration (defines global settings)
18665:│   ├── docmd.config.json     ← Project-specific config overrides
18669:    ├── docmd.config.json     ← Project-specific config overrides
18676:*   **Global Configuration Cascading:** Any configuration defined in the root `docmd.config.json` (such as `theme` or `menubar`) acts as a fallback default. Individual projects can selectively override these defaults in their own local config files.
24752:```json "docmd.config.json"
24762:Each project folder has its own `docmd.config.json` with independent configuration. One `npx @docmd/core build` produces a single deployable directory - no reverse proxy, no nginx, no separate CI pipelines.
24793:| **docmd** | **~15 lines** | 1 (`docmd.config.json`) |
24828:```json "docmd.config.json"
24936:The engine uses a modular layout system. Configure most UI zones in the `layout` section of your `docmd.config.json`.
24953:Configure these buttons under `theme.copyWidgets` in your `docmd.config.json`:
24955:```json "docmd.config.json"
24974:```json "docmd.config.json"
25002:```json "docmd.config.json"
25039:```json "docmd.config.json"
25098:```json "docmd.config.json"
25116:```json "docmd.config.json"
25265:```json "docmd.config.json"
25331:Configure the menubar in the `layout` section of your `docmd.config.json`.
Thinking…

Let me read the CLI commands reference section (latest: line 62399) and a config example (line 24752 / 24828).

sed -n '62399,62520p' /tmp/dfull.txt
## [CLI Commands](https://docs.docmd.io/reference/cli-commands/) (Reference)
## [CLI Commands](https://docs.docmd.io/reference/cli-commands/) (Reference)

---
title: "CLI Commands"
description: "Command-line interface reference for docmd, commands, flags, and options for building and managing documentation."
---

## Commands Overview

| Command | Technical Function |
| :--- | :--- |
| [`npx @docmd/core init`](#npx-docmdcore-init) | Initialise a new documentation workspace. |
| [`npx @docmd/core dev`](#npx-docmdcore-dev) | Launch local development server with hot-reloading. |
| [`npx @docmd/core build`](#npx-docmdcore-build) | Compile production-ready static site. |
| [`npx @docmd/core serve`](#npx-docmdcore-serve) | Build once and serve the site in production with compression and health probes. |
| [`npx @docmd/core live`](#npx-docmdcore-live) | Launch browser-based Live Editor environment. |
| [`npx @docmd/core stop`](#npx-docmdcore-stop) | Terminate active `dev` and `serve` servers. |
| [`npx @docmd/core deploy`](#npx-docmdcore-deploy) | Generate deployment manifests and container files. |
| [`npx @docmd/core migrate`](#npx-docmdcore-migrate) | Upgrade legacy configurations or migrate from third-party tools. |
| [`npx @docmd/core validate`](#npx-docmdcore-validate) | Run link validation and check Markdown document integrity. |
| [`npx @docmd/core doctor`](#npx-docmdcore-doctor) | Run pre-flight environment diagnostics and inspect dependencies. |
| [`npx @docmd/core mcp`](#npx-docmdcore-mcp) | Execute Model Context Protocol (MCP) server over `stdio`. |
| [`npx @docmd/core add <plugin>`](#npx-docmdcore-add-plugin) | Install and configure docmd plugins. |
| [`npx @docmd/core remove <plugin>`](#npx-docmdcore-remove-plugin) | Uninstall plugins and remove configuration entries. |

## Global Options

| Parameter Flag | Alias | Technical Description |
| :--- | :--- | :--- |
| `--config <path>` | `-c` | Specify custom path to configuration file (default: `docmd.config.json`). |
| `--no-open` | - | Disable auto-opening browser on server startup (`dev` command). |
| `--verbose` | `-V` | Output detailed execution logs. |
| `--version` | `-v` | Output installed package version. |
| `--help` | `-h` | Output command CLI help instructions. |
| `--cwd <path>` | - | Override target working directory path. |

## `npx @docmd/core init`

Initialise a documentation repository layout inside the working directory.

```bash
npx @docmd/core init
```

Generates:
* `docs/index.md`, Default landing page.
* `docmd.config.json`, Standard configuration options.
* Updated `package.json` build scripts.

## `npx @docmd/core dev`

Launch local development server with real-time hot-reloading.

```bash
npx @docmd/core dev [options]
```

| Parameter Flag | Alias | Technical Description |
| :--- | :--- | :--- |
| `--port <number>` | `-p` | Specify web server port (default: `3000`). |
| `--host <address>` | - | Specify network interface to bind (default: `127.0.0.1`; `0.0.0.0` for all/LAN). |
| `--no-open` | - | Prevent automatic launching of the default web browser upon server startup. |
| `--config <path>` | `-c` | Custom path to configuration file. |

## `npx @docmd/core build`

Compile a production static site into your configured output directory (`site/`).

```bash
npx @docmd/core build [options]
```

| Parameter Flag | Alias | Technical Description |
| :--- | :--- | :--- |
| `--offline` | - | Rewrite asset and link paths to `.html` relative files for local file system browsing. |
| `--config <path>` | `-c` | Custom path to configuration file. |

## `npx @docmd/core serve`

Build the site once and serve it in production mode: fixed port, Gzip compression, no file watcher, no live reload, and container health probes. See [Production Server](../deployment/docmd-serve) for the `serve` config block, plugin actions and MCP over HTTP.

```bash
npx @docmd/core serve [options]
```

| Parameter Flag | Alias | Technical Description |
| :--- | :--- | :--- |
| `--host <address>` | - | Interface to bind (default: `serve.host`, `DOCMD_HOST`, then `127.0.0.1`; `0.0.0.0` for container / LAN). |
| `--port <number>` | `-p` | Port to listen on (default: `serve.port`, `PORT`, then `3000`). Exits with code 1 if it is in use. |
| `--config <path>` | `-c` | Custom path to configuration file. |

::: callout info "Container Health Probes (/healthz)" icon:activity
`docmd serve` exposes an automatic `GET /healthz` endpoint returning `{"status":"ok","version":"..."}` with HTTP 200 and `Cache-Control: no-store`. Use this endpoint for Docker `HEALTHCHECK`, Kubernetes liveness and readiness probes, and cloud load balancers.
:::
## `npx @docmd/core live`

Launch browser-based Live Editor environment.

```bash
npx @docmd/core live [options]
```

| Parameter Flag | Technical Description |
| :--- | :--- |
| `--build-only` | Compile standalone Live Editor bundle without starting preview web server. |

## `npx @docmd/core stop`

Terminate running development or production servers.

```bash
npx @docmd/core stop [options]
```

| Parameter Flag | Alias | Technical Description |
| :--- | :--- | :--- |
| `--port <number>` | `-p` | Terminate process running on specified port. |
| `--force` | `-f` | Kill processes running on standard ports (3000, 3001, 8080, 8081). |

## `npx @docmd/core deploy`

Generate deployment manifests and configuration files.
sed -n '24740,24850p' /tmp/dfull.txt
| Capability | docmd | Docusaurus | VitePress | MkDocs | Starlight |

| Capability | docmd | Docusaurus | VitePress | MkDocs | Starlight |
|:-----------|:-----:|:----------:|:---------:|:------:|:---------:|
| Native workspace support | ✅ | Plugin | ❌ | Plugin | ❌ |
| Single config line per project | ✅ | ❌ | ❌ | ❌ | ❌ |
| Independent versioning per project | ✅ | ✅ | ❌ | ❌ | ❌ |
| Independent i18n per project | ✅ | ❌ | ❌ | ❌ | ❌ |
| Shared assets across projects | ✅ | ❌ | ❌ | ❌ | ❌ |
| Single `site/` output (no proxy needed) | ✅ | ❌ | ❌ | ❌ | ❌ |
| Zero-config detection | ✅ | ❌ | ❌ | ❌ | ❌ |

::: callout info "How docmd does it" icon:info
```json "docmd.config.json"
{
  "workspace": {
    "projects": [
      { "prefix": "/", "src": "main-docs", "title": "Docs" },
      { "prefix": "/sdk", "src": "sdk-docs", "title": "SDK" }
    ]
  }
}
```
Each project folder has its own `docmd.config.json` with independent configuration. One `npx @docmd/core build` produces a single deployable directory - no reverse proxy, no nginx, no separate CI pipelines.
:::

Docusaurus achieves similar results through multi-instance plugins, which require separate plugin entries, sidebar files, and manual route configuration per instance. MkDocs needs the third-party `mkdocs-monorepo-plugin`. VitePress, Starlight, and Mintlify have no native workspace support at all.

## Full feature matrix

| Feature | docmd | Docusaurus | VitePress | MkDocs Material | Starlight | Mintlify |
|:--------|:-----:|:----------:|:---------:|:---------------:|:---------:|:--------:|
| **Zero-config start** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Config required** | None | `docusaurus.config.js` | `config.mts` | `mkdocs.yml` | `astro.config.mjs` | `mint.json` |
| **Workspace** | ✅ | Plugin | ❌ | Plugin | ❌ | ❌ |
| **SPA navigation** | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ |
| **Native versioning** | ✅ | ✅ | ❌ | Plugin | ❌ | ✅ |
| **Native i18n** | ✅ | ✅ | Manual | Plugin | ✅ | ✅ |
| **Built-in search** | ✅ | ❌ (Algolia) | ✅ | ✅ | ✅ | Cloud |
| **llms.txt** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **MCP Server** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Agent Skills** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **Docker Image** | ✅ | ❌ | ✅ | ❌ | ❌ | N/A |
| **Inline discussions** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
| **PWA support** | ✅ | Community | ❌ | ❌ | ❌ | ❌ |
| **Self-hosted** | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
| **Deploy config generator** | ✅ | ❌ | ❌ | ❌ | ❌ | N/A |

## Configuration overhead

Lines of config required for a site with versioning, i18n, search, and sitemap:

| Generator | Config lines | Files required |
|:----------|:------------:|:--------------:|
| **docmd** | **~15 lines** | 1 (`docmd.config.json`) |
| MkDocs Material | ~50 lines | 1 + plugins |
| VitePress | ~80 lines | 1 + theme dir |
| Docusaurus | ~120 lines | 3+ config files |

## Quality assurance

docmd ships with a brute test suite that validates **25 distinct scenarios** across **85 assertions** - covering every feature in isolation and in combination. Every release must pass all 85 assertions and 13 internal failsafe checks before shipping.

::: callout tip "Run the tests yourself" icon:lightbulb
```bash
git clone https://github.com/docmd-io/docmd.git
cd docmd && node scripts/brute-test.js
```
:::

No other documentation generator in this class publishes a comparable end-to-end feature test suite as part of its source.

---

## [Cookie Consent](https://docs.docmd.io/08/configuration/cookie-consent/) (08)

---
title: "Cookie Consent"
description: "Opt-in cookie consent dialog shipped with the default UI. Stores the user's choice in localStorage, supports translations, and emits a docmd:cookie-consent CustomEvent so plugins and templates can react."
---

# Cookie Consent

> **New in 0.8.7.** The cookie consent dialog is a built-in feature of the default `@docmd/ui` package. No plugin install required. **Opt-in** — nothing is rendered unless you set `config.cookie`.

A minimal, accessible GDPR-style consent dialog. The user's choice is persisted in `localStorage` with a configurable TTL. A `docmd:cookie-consent` `CustomEvent` fires on `window` after a choice is made so plugins and templates can react (e.g. enable analytics, load third-party scripts).

## Enable in 30 seconds

```json "docmd.config.json"
{
  "cookie": {
    "enabled": true,
    "message": "We use cookies to ensure you get the best experience.",
    "policyUrl": "/privacy",
    "position": "bottom-right"
  }
}
```

Build, and the dialog appears on first visit. Subsequent visits respect the stored choice.

## Configuration reference

| Field | Default | Description |
|---|---|---|
| `enabled` | `true` (when `cookie` object is present) | Master switch. |
| `message` | Translation key `cookieMessage` | Dialog body text. Inline HTML allowed via the `t()` helper. |
| `acceptText` | Translation key `cookieAccept` | Accept button label. |
| `declineText` | Translation key `cookieDecline` | Decline button label. |
| `policyUrl` | `null` | Optional link to your privacy policy. |
| `position` | `"bottom"` | `"bottom"` \| `"bottom-left"` \| `"bottom-right"` \| `"center"` |
Thinking…

Now let me check the general configuration reference for the top-level keys (title, src, output, plugins, navigation). Grep for configuration/general section.

Then install @docmd/core (one-shot npm install), scaffold, build.

Let me install first (in background of my thinking, but it's a one-shot command; might take a while — acceptable, it's not a long-running server).

grep -n -E '^## \[(General Configuration|Configuration)\]' /tmp/dfull.txt | tail -5; awk 'NR>=63000 && NR<=63120' /tmp/dfull.txt | head -0; grep -n 'reference/configuration' /tmp/dfull.txt | head
9504:## [General Configuration](https://docs.docmd.io/06/configuration/general/) (06)
9504:## [General Configuration](https://docs.docmd.io/06/configuration/general/) (06)
15895:## [General Configuration](https://docs.docmd.io/07/configuration/overview/) (07)
25541:## [General Configuration](https://docs.docmd.io/08/configuration/overview/) (08)
39599:## [General Configuration](https://docs.docmd.io/09/configuration/overview/) (09)
52275:## [General Configuration](https://docs.docmd.io/configuration/overview/) (Configuration)
cd /sandbox/repo && timeout 300 npm install --no-audit --no-fund @docmd/core 2>&1 | tail -15
added 60 packages in 14s

added 60 packages in 14s
Thinking…

Installed in 14s. Now read the general config overview (line 52275) for key names.

sed -n '52275,52420p' /tmp/dfull.txt
## [General Configuration](https://docs.docmd.io/configuration/overview/) (Configuration)
## [General Configuration](https://docs.docmd.io/configuration/overview/) (Configuration)

---
title: "General Configuration"
description: "Master docmd.config.json to manage branding, site metadata, routing, layout zones, and build compilers in docmd."
---

The `docmd.config.json` or `docmd.config.jsonc` file is the central configuration manifest for your documentation workspace. It manages site branding, navigation sidebars, localisation parameters, and static site compiler options.

## Configuration Schema Formats

`docmd` supports `docmd.config.jsonc` and `docmd.config.json`. Both formats support single-line (`//`) comments, multi-line (`/* */`) comments, and trailing commas:

```jsonc "docmd.config.jsonc"
{
  // Site branding and canonical address
  "title": "My Technical Docs",
  "url": "https://docs.example.com",

  /* Source and build output directories */
  "src": "docs",
  "out": "site",
  "base": "/",
}
```

For dynamic setups requiring environment variables or programmatic logic, `docmd.config.ts` and `docmd.config.js` are fully supported:

::: tabs
== tab "TypeScript" icon:code-2
```typescript "docmd.config.ts"
import { UserConfig } from '@docmd/api';

const config: UserConfig = {
  title: process.env.DOCS_TITLE || 'My Technical Docs',
  src: 'docs',
  out: 'site'
};

export default config;
```
== tab "JavaScript" icon:file-code
```javascript "docmd.config.js"
module.exports = {
  title: process.env.DOCS_TITLE || 'My Technical Docs',
  src: 'docs',
  out: 'site'
};
```
:::

## Core Settings

These top-level properties configure base paths and global compiler options:

| Property | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `title` | `String` | `"Documentation"` | Formal site title displayed in navigation headers and browser tabs. |
| `url` | `String` | `""` | Canonical site URL. Essential for search engine optimisation, sitemap generation, and OpenGraph metadata. |
| `src` | `String` | `"docs"` | Relative directory containing source Markdown (`.md`) files. |
| `out` | `String` | `"site"` | Relative path where the compiler generates the production static bundle. |
| `base` | `String` | `"/"` | Root URL path prefix (e.g. `/docs/` when hosted in a subfolder). |
| `exclude` | `String[]` | `[]` | Gitignore-style glob patterns for files and directories to exclude from the build, MCP tools, and link validation. E.g. `["archive/**", "drafts/*.md"]`. |
| `tmp` | `String` | `null` | Temporary build cache directory. Defaults to an isolated system temp folder. |
| `engine` | `String` | `"js"` | Processing engine: `"js"` (default pure JavaScript engine), `"rust"` (native binary accelerator via `@docmd/engine-rust`), or `"python"` (Python 3 runtime accelerator via `@docmd/engine-python`). |
| `i18n` | `Object` | `null` | Multi-language parameters. See the [Localisation Guide](./localisation/translated-content.md). |
| `plugins` | `Object` | `{}` | Standard and third-party plugin configuration map. See [Plugins Guide](../plugins/usage.md). |
| `static` | `String \| String[] \| Boolean` | `undefined` | Static root assets to copy directly to the output root as-is. Auto-detects `public/` folder by default. Set to `false` to disable. |
| `serve` | `Object` | `{ "host": "127.0.0.1", "port": 3000 }` | Host and port configuration for the `docmd serve` production server command. |

::: callout info title:"Backwards Compatibility" icon:history
`docmd` preserves 100% backward compatibility for older configuration manifests:
- Legacy root keys (`siteTitle`, `siteUrl`, `srcDir`, `outputDir`) map smoothly to modern keys (`title`, `url`, `src`, `out`).
- `customJs` and `customCss` map into `theme.customJs` and `theme.customCss`.
- `htmlPolicy` maps into `security.html`.
- `focusMode` and `print` at root map into `layout.focusMode` and `layout.print`.
:::

## Branding & Identity

Configure brand logos, browser favicons, and custom stylesheets or client scripts:

```json "docmd.config.json"
{
  "logo": {
    "light": "assets/images/logo-dark.png",
    "dark": "assets/images/logo-light.png",
    "href": "/",
    "alt": "Company Logo",
    "height": "32px"
  },
  "favicon": "assets/favicon.ico",
  "theme": {
    "name": "default",
    "appearance": "system",
    "customCss": [
      "/assets/css/branding.css"
    ],
    "customJs": [
      "/assets/js/feedback.js"
    ]
  }
}
```

## UI Layout and Behaviour

Configure headers, sidebars, search placement, theme toggles, and reading tools:

```json "docmd.config.json"
{
  "layout": {
    "spa": true,
    "header": {
      "enabled": true
    },
    "sidebar": {
      "collapsible": true,
      "defaultCollapsed": false
    },
    "optionsMenu": {
      "position": "header",
      "components": {
        "search": true,
        "themeSwitch": true
      }
    },
    "focusMode": false,
    "print": false,
    "copyCode": true,
    "pageNavigation": true,
    "copyWidgets": {
      "enabled": true,
      "raw": true,
      "context": true
    }
  }
}
```

Refer to the [Layout & UI Zones](./layout-ui.md) guide for comprehensive visual customisation options.

## Content & Security Policies

Fine-tune how `docmd` parses Markdown and enforces HTML security:

cd /sandbox/repo && ls node_modules/@docmd/ && npx @docmd/core --version 2>&1 | tail -3
api
api
core
deployer
engine-js
engine-python
engine-rust
live
parser
plugin-ai
plugin-analytics
plugin-git
plugin-installer
plugin-llms
plugin-math
plugin-mdx
plugin-mermaid
plugin-okf
plugin-openapi
plugin-playground
plugin-search
plugin-seo
plugin-sitemap
themes
tui
ui
utils
0.10.1
Thinking…

Now scaffold. Let's check navigation config format quickly and plugin config (search/llms/sitemap are probably auto). Let me check navigation.json format briefly.

Actually zero-config generates nav from file structure. But let me add a small navigation config? Docs mention navigation.json or layout? Let me grep quickly for navigation config to keep it correct. Simpler: keep zero-config plus frontmatter, and configure plugins for llms/search/sitemap if needed. Let me check plugins usage config keys.

grep -n -E '^## \[Plugins' /tmp/dfull.txt | tail -3; sed -n '/^## \[Using Plugins\](https:\/\/docs.docmd.io\/plugins\/usage\/)/,+80p' /tmp/dfull.txt | head -90
## [Using Plugins](https://docs.docmd.io/plugins/usage/) (Plugins)
## [Using Plugins](https://docs.docmd.io/plugins/usage/) (Plugins)

---
title: "Using Plugins"
description: "Install, configure, and manage docmd plugins, from core built-ins to optional third-party extensions."
---

`docmd` features a modular plugin architecture. Built-in plugins ship directly with the core engine and require no separate installation. Optional and third-party plugins can be installed via the CLI or package managers.

## Installing Plugins

Use the `docmd` CLI to manage plugin packages:

```bash
# Install an official plugin
npx @docmd/core add <plugin-name>

# Remove an installed plugin
npx @docmd/core remove <plugin-name>
```

The installer detects your active package manager (npm, pnpm, yarn, or bun), resolves short names to full `@docmd/plugin-*` package names, and updates your `docmd.config.json` automatically.

Use `--verbose` (or `-V`) to view complete installer logs:

```bash
npx @docmd/core add <plugin-name> -V
```

## Core Built-in Plugins

These plugins ship bundled with `@docmd/core` and require no installation. Enable or configure them in `docmd.config.json`:

```json "docmd.config.json"
{
  "plugins": {
    "search": {},
    "ai": {},
    "seo": { "aiBots": false },
    "sitemap": {},
    "analytics": {},
    "llms": {},
    "okf": {},
    "mermaid": {},
    "openapi": {},
    "git": {}
  }
}
```

::: callout tip title:"Git Repository Detection" icon:git-branch
The Git plugin detects whether your project root is a valid Git repository. If Git history is unavailable, it disables footer timestamp generation automatically.
:::

::: callout info title:"OKF Bundle Support" icon:info
The `@docmd/plugin-okf` plugin generates an Open Knowledge Format bundle (`site/okf/`) containing typed manifests and concept files for AI agents. It is enabled by default; set `"plugins": { "okf": false }` to opt out. See [OKF Bundle Plugin](okf.md) for details.
:::

## Optional Plugins

Optional plugins require explicit installation before activation:

| Plugin | Install Command | Purpose |
| :--- | :--- | :--- |
| [Iconify (Icons)](iconify.md) | `npx @docmd/core add iconify` | On-demand vector icons from 100+ open-source icon sets with build-time SVG inlining |
| [Math (KaTeX)](math.md) | `npx @docmd/core add math` | Server-side LaTeX and KaTeX mathematical equation rendering |
| [PWA Support](pwa.md) | `npx @docmd/core add pwa` | Progressive Web App manifest and offline service worker caching |
| [Threads](threads.md) | `npx @docmd/core add threads` | Markdown-native inline comment discussions |

## Auto-Installation Mechanics

If an official plugin is declared in `docmd.config.json` without being installed in `node_modules`, `docmd` automatically downloads and installs it during the next build execution:

```json "docmd.config.json"
{
  "plugins": {
    "pwa": {}
  }
}
```

grep -n 'navigation.json' /tmp/dfull.txt | head -5; sed -n '/^## \[Navigation Configuration\](https:\/\/docs.docmd.io\/configuration\/navigation\/)/,+70p' /tmp/dfull.txt | head -80
9919:`docmd` supports **Navigation V2**, allowing you to place a `navigation.json` file at the root of your versioned directory (e.g., `docs-v1/navigation.json`
9919:`docmd` supports **Navigation V2**, allowing you to place a `navigation.json` file at the root of your versioned directory (e.g., `docs-v1/navigation.json`).
9932:1.  **`navigation.json`**: Checked first within the specific version source folder.
13635:description: "Smart Version Switcher, Navigation V2 (navigation.json), Breadcrumbs, Analytics V2, and core security fixes."
13645:### Navigation Architecture V2 (`navigation.json`)
13646:Manage large, versioned documentation sites with ease. You can now place a `navigation.json` file directly inside your versioned documentation folders (e.g., `docs-05/navigation.json`). This eliminates the need for massive, duplicated navigation arrays in your main `docmd.config.js`.
## [Navigation Configuration](https://docs.docmd.io/configuration/navigation/) (Configuration)

---
title: "Navigation Configuration"
description: "Structure sidebar navigation, organise categories, and configure icons for readers and search engines in docmd."
---

`docmd` provides explicit control over your site's navigation hierarchy. A structured sidebar creates a logical reading sequence, optimising both the Single Page Application (SPA) user experience and search engine indexability.

## The Navigation Schema

The `navigation` array in `docmd.config.json` controls the sidebar. Each object represents a direct page link or a nested category group:

<img width="260" class="with-border" src="/assets/previews/navigation-hierarchy.webp">

```json "docmd.config.json"
{
  "navigation": [
    { "title": "Overview", "path": "/", "icon": "home" },
    { "title": "Quick Start", "path": "/getting-started/quick-start", "icon": "rocket" }
  ]
}
```

## Supported Link Properties

Every item in the navigation array supports the following properties:

| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `title` | `String` | Yes | Menu label displayed in the sidebar. |
| `path` | `String` | No | Target URL route. Relative local paths must start with a leading slash (`/`). |
| `icon` | `String` | No | Name of any [Lucide Icon](external:https://lucide.dev/icons) in kebab-case format (e.g. `git-branch`). |
| `children` | `Array` | No | Array of nested navigation items defining a submenu. |
| `collapsible`| `Boolean`| No | When `true`, enables expanding or collapsing category groups. |
| `external` | `Boolean`| No | When `true`, opens the destination link in a new browser tab. |

## Organising Navigation Groups

Structure your sidebar using two primary grouping patterns:

### Interactive Category Headers (Landing Page + Children)

Specify a `path` alongside `children` for a category section. Clicking the header navigates to the landing page and toggles child items:

```json "docmd.config.json"
{
  "title": "Cloud Services",
  "path": "/cloud/overview", 
  "children": [
    { "title": "AWS Setup", "path": "/cloud/aws" },
    { "title": "GCP Setup", "path": "/cloud/gcp" }
  ]
}
```

### Static Category Labels (Group Headers Only)

Omit the `path` property. The category header acts as a non-clickable title grouping related links:

```json "docmd.config.json"
{
  "title": "Formatting & Elements",
  "icon": "layout-grid",
  "children": [
    { "title": "Syntax Guide", "path": "/content/syntax" },
    { "title": "Rich Containers", "path": "/content/containers" }
  ]
}
```

Thinking…

Now scaffold the docs tree. Small example: a fictional "Acme Widget SDK" docs with:

docs/ index.md getting-started/quick-start.md getting-started/installation.md guides/configuration.md api-reference/client.md changelog.md

Config with title, url, src, out, navigation, plugins (search, llms, sitemap, seo, okf), theme.

Also add package.json scripts. Then run build once and time it.

Note: ai plugin requires API key — skip it. Include search, llms, sitemap, seo, okf (built-ins).

Let me write files.

File edits

1 file

Completed
Writtendocs/index.mdView changes

/sandbox/repo/docs/index.md

Written content · previous contents were not recorded

---
title: "Widget SDK"
description: "Documentation for the Acme Widget SDK — install, configure, and ship your first widget."
---
# Widget SDK
Welcome to the **Acme Widget SDK** documentation. This site is a small, complete
example built with [docmd](https://docmd.io) — one Markdown source tree compiled
into a static documentation website plus machine-readable outputs.
::: callout tip "What this example demonstrates" icon:lightbulb
A zero-config docs tree, an explicit `navigation` sidebar, frontmatter metadata,
docmd containers (callouts, tabs, steps, cards), and the built-in `search`,
`llms`, `sitemap`, `seo` and `okf` plugins.
:::
## Start here
::: grids
::: grid
::: card "Installation" icon:download
Add the SDK to your project with npm, pnpm, or a CDN tag.
[Install the SDK](/getting-started/installation)
:::
:::
::: grid
::: card "Quick Start" icon:rocket
Render your first widget in under five minutes.
[Run the quick start](/getting-started/quick-start)
:::
:::
:::
## Who this is for
| Audience | Read |
| :--- | :--- |
| Application developers | [Quick Start](/getting-started/quick-start), [Client API](/api-reference/client) |
| Platform / DevOps engineers | [Configuration](/guides/configuration) |
| Release managers | [Changelog](/changelog) |
## Machine-readable outputs
docmd compiles the same Markdown into formats for LLMs and agents. After a build
you will find them in the `site/` output directory:
- `site/llms.txt` and `site/llms-full.txt` — page index and full concatenated text
- `site/okf/` — Open Knowledge Format bundle
- `site/sitemap.xml`, `site/robots.txt` — SEO metadata
- `site/search/` — offline search index (no external service, no API keys)

File edits

1 file

Completed
Writtendocs/getting-started/installation.mdView changes

/sandbox/repo/docs/getting-started/installation.md

Written content · previous contents were not recorded

---
title: "Installation"
description: "Install the Acme Widget SDK with npm, pnpm, yarn, or a CDN script tag."
---
# Installation
The SDK ships as an ES module with bundled TypeScript declarations. It has no
runtime dependencies and no native build step.
## Requirements
- Node.js **20 or newer** (for the CLI and build tooling)
- Any modern browser, or a server-rendering framework with DOM shims
## Package managers
::: tabs
== tab "npm" icon:package
```bash
npm install @acme/widget-sdk
```
== tab "pnpm" icon:package
```bash
pnpm add @acme/widget-sdk
```
== tab "yarn" icon:package
```bash
yarn add @acme/widget-sdk
```
:::
## CDN
For prototypes, load the UMD bundle directly:
```html
<script src="https://cdn.acme.dev/widget-sdk@2/widget.umd.js"></script>
<script>
window.AcmeWidget.mount('#demo', { projectId: 'pk_demo' });
</script>
```
::: callout warning "Pin your CDN version" icon:alert-triangle
Never point production traffic at an unpinned `@latest` tag. Use an exact
version (`widget-sdk@2.4.1`) so a bad release cannot deploy itself.
:::
## Verify the install
```bash
npx acme-widget --version
```
Expected output:
```text
@acme/widget-sdk 2.4.1
```
Next step: [render your first widget](/getting-started/quick-start).
Thinking…

Careful: nested containers "grid" inside "grids" — docs showed ::: grids then ::: grid then ::: card. Fine.

Now write remaining pages and config.

File edits

1 file

Completed
Writtendocs/getting-started/quick-start.mdView changes

/sandbox/repo/docs/getting-started/quick-start.md

Written content · previous contents were not recorded

---
title: "Quick Start"
description: "Render your first Acme widget in five minutes: install, mount, and customise."
---
# Quick Start
::: steps
1. **Install the SDK**
```bash
npm install @acme/widget-sdk
```
See [Installation](/getting-started/installation) for pnpm, yarn, and CDN options.
2. **Add a mount point**
```html
<div id="widget-root"></div>
```
3. **Mount the widget**
```javascript
import { mount } from '@acme/widget-sdk';
const widget = mount('#widget-root', {
projectId: 'pk_demo',
theme: 'system',
locale: 'en'
});
```
4. **React to events**
```javascript
widget.on('ready', () => console.log('widget rendered'));
widget.on('error', (err) => console.error(err.code, err.message));
```
:::
## Result
You should see a rendered widget inside `#widget-root`, a `ready` log in the
console, and no network calls beyond the SDK bundle itself.
::: callout info "Demo project keys are read-only" icon:info
`pk_demo` points at a public sandbox dataset. Replace it with a real project key
from your dashboard before going to production — see
[Configuration](/guides/configuration).
:::
## Cleanup
`mount()` returns a handle. Call `destroy()` to remove listeners and DOM nodes:
```javascript
widget.destroy();
```
## Next steps
- [Configuration](/guides/configuration) — project keys, themes, and locales
- [Client API](/api-reference/client) — full method and event reference
- [Changelog](/changelog) — what changed in each release

File edits

1 file

Completed
Writtendocs/guides/configuration.mdView changes

/sandbox/repo/docs/guides/configuration.md

Written content · previous contents were not recorded

---
title: "Configuration"
description: "Configure the Acme Widget SDK: project keys, environment variables, themes, locales, and error handling."
---
# Configuration
All configuration is passed to `mount()` as a single options object, or loaded
from environment variables at build time.
## Options reference
| Option | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `projectId` | `string` | — | **Required.** Public project key (`pk_...`). |
| `secretKey` | `string` | `undefined` | Server-side only. Never ship to a browser bundle. |
| `theme` | `"light" \| "dark" \| "system"` | `"system"` | Appearance mode. |
| `locale` | `string` | `"en"` | UI language tag. |
| `endpoint` | `string` | `"https://api.acme.dev"` | API base URL. Override for self-hosting. |
| `retries` | `number` | `3` | Retry count for transient network failures. |
| `timeoutMs` | `number` | `8000` | Per-request timeout. |
## Environment variables
```bash
ACME_PROJECT_ID=pk_live_9f2c
ACME_ENDPOINT=https://api.acme.dev
ACME_TIMEOUT_MS=8000
```
```javascript
import { mount } from '@acme/widget-sdk';
mount('#widget-root', {
projectId: process.env.ACME_PROJECT_ID,
endpoint: process.env.ACME_ENDPOINT,
timeoutMs: Number(process.env.ACME_TIMEOUT_MS)
});
```
::: callout danger "Never expose secret keys" icon:shield-alert
Any variable inlined into a client bundle is public. Keep `secretKey` in server
code, an edge function, or a secrets manager, and let the browser hold only the
public `pk_...` key.
:::
## Error handling
Errors are objects with a stable `code`, a human-readable `message`, and an
optional `retryable` flag:
```javascript
widget.on('error', (err) => {
if (err.retryable) {
return widget.refresh();
}
reportToSentry(err);
});
```
| Code | Meaning | Retryable |
| :--- | :--- | :--- |
| `invalid_project` | Unknown or revoked project key | No |
| `rate_limited` | Too many requests | Yes |
| `network` | Request failed or timed out | Yes |
| `unauthorized` | Missing or invalid secret key | No |
## Localisation
Set `locale` to any supported tag; the SDK falls back to `en` for unknown tags.
Supported: `en`, `de`, `fr`, `es`, `ja`, `zh`, `ru`.
Thinking…

Oops, I used a literal \r in the configuration.md file. Let me check what happened — the write content contained "\r" characters literally? In my JSON I wrote "\rConfiguration\r" which would insert carriage returns. That's bad. Let me inspect and rewrite cleanly.

cd /sandbox/repo && file docs/guides/configuration.md && head -c 200 docs/guides/configuration.md | od -c | head -5
docs/guides/configuration.md: JavaScript source, Unicode text, UTF-8 text
docs/guides/configuration.md: JavaScript source, Unicode text, UTF-8 text
0000000   -   -   -  \n   t   i   t   l   e   :       "   C   o   n   f
0000020   i   g   u   r   a   t   i   o   n   "  \n   d   e   s   c   r
0000040   i   p   t   i   o   n   :       "   C   o   n   f   i   g   u
0000060   r   e       t   h   e       A   c   m   e       W   i   d   g
0000100   e   t       S   D   K   :       p   r   o   j   e   c   t    
Thinking…

I'm checking that the output doesn't have any carriage return characters at the beginning.

cd /sandbox/repo && grep -c $'\r' docs/guides/configuration.md || echo "no CR found"
0
0
no CR found
Thinking…

I need to continue investigating this issue. Let me check the details and proceed with the remaining files.

File edits

1 file

Completed
Writtendocs/api-reference/client.mdView changes

/sandbox/repo/docs/api-reference/client.md

Written content · previous contents were not recorded

---
title: "Client API"
description: "Method and event reference for the Acme Widget SDK client: mount, refresh, destroy, and the widget event bus."
---
# Client API
## `mount(target, options)`
Creates a widget instance attached to a DOM node.
| Parameter | Type | Description |
| :--- | :--- | :--- |
| `target` | `string \| HTMLElement` | CSS selector or element to render into. |
| `options` | `WidgetOptions` | See [Configuration](/guides/configuration). |
**Returns:** `Widget`
```javascript
import { mount } from '@acme/widget-sdk';
const widget = mount(document.querySelector('#widget-root'), {
projectId: 'pk_demo'
});
```
## `Widget` instance
### `widget.refresh(): Promise<void>`
Re-fetches data and re-renders. Resolves once the DOM is updated.
```javascript
await widget.refresh();
```
### `widget.update(options: Partial<WidgetOptions>): void`
Applies a partial configuration change without a full remount. Accepts `theme`,
`locale`, `endpoint`, `retries`, and `timeoutMs`. Changing `projectId` triggers a
full teardown and remount.
```javascript
widget.update({ theme: 'dark', locale: 'de' });
```
### `widget.getState(): WidgetState`
Returns a snapshot of the current state.
```json
{
"status": "ready",
"locale": "en",
"lastSync": "2026-11-24T02:58:24.733Z",
"items": 12
}
```
### `widget.destroy(): void`
Removes DOM nodes, aborts in-flight requests, and unsubscribes all listeners.
The instance cannot be reused after `destroy()`.
## Events
Subscribe with `on(event, handler)`; unsubscribe with `off(event, handler)`.
| Event | Payload | Fires when |
| :--- | :--- | :--- |
| `ready` | `{ items: number }` | First successful render. |
| `update` | `{ items: number }` | Data changed after a refresh. |
| `error` | `{ code, message, retryable }` | A request or render failed. |
| `destroy` | `{}` | The instance was torn down. |
```javascript
widget.on('update', ({ items }) => {
document.querySelector('#count').textContent = String(items);
});
```
::: callout note "Handlers are called synchronously" icon:info
Event handlers run on the main thread during the render pass. Keep them cheap —
offload heavy work with `queueMicrotask()` or a worker.
:::
## Server-side rendering
For SSR, import from the `server` entry point, which never touches `window`:
```javascript
import { renderToString } from '@acme/widget-sdk/server';
const html = await renderToString({ projectId: 'pk_demo', locale: 'en' });
```

File edits

1 file

Completed
Writtendocs/changelog.mdView changes

/sandbox/repo/docs/changelog.md

Written content · previous contents were not recorded

---
title: "Changelog"
description: "Release history for the Acme Widget SDK."
---
# Changelog
::: changelog
== 2.4.1 "2026-11-10"
- **Fixed:** `refresh()` no longer leaks an AbortController when called during an in-flight request.
- **Fixed:** `locale: 'zh'` fell back to `en` on the server entry point.
== 2.4.0 "2026-10-02"
- **Added:** `renderToString()` in `@acme/widget-sdk/server` for SSR frameworks.
- **Added:** `retryable` flag on all error payloads.
- **Changed:** default `timeoutMs` raised from `5000` to `8000`.
== 2.3.0 "2026-08-14"
- **Added:** `widget.update()` for partial reconfiguration without remount.
- **Deprecated:** `setTheme()` — use `update({ theme })` instead.
== 2.2.0 "2026-06-21"
- **Added:** `destroy` event.
- **Fixed:** listeners registered twice after a failed mount.
:::
## Upgrade notes
### 2.3 → 2.4
`setTheme()` is deprecated but still functional. Replace it:
```javascript
// Before
widget.setTheme('dark');
// After
widget.update({ theme: 'dark' });
```
### 2.2 → 2.3
Error payloads gained a `retryable` boolean. Handlers that branched on
`err.message` strings should switch to `err.code`:
```javascript
widget.on('error', (err) => {
if (err.code === 'rate_limited') backoff();
});
```
Thinking…

Now check changelog container syntax. Let me grep docs for changelog container syntax.

sed -n '/^## \[Changelogs\](https:\/\/docs.docmd.io\/content\/containers\/changelogs\/)/,+60p' /tmp/dfull.txt | head -70
## [Changelogs](https://docs.docmd.io/content/containers/changelogs/) (Content)
## [Changelogs](https://docs.docmd.io/content/containers/changelogs/) (Content)

---
title: "Changelogs"
description: "Generate structured, timeline-based version histories and release notes in docmd."
---

The `changelog` container provides a specialised layout for documenting project evolution. It parses version or date headers into vertical timeline entries, ensuring release notes remain clear and scannable.

## Container Syntax

```markdown
::: changelog # Outer release history container opener
::: log [title:"v1.0.0 (YYYY-MM-DD)"] # Version entry item opener
Release details (markdown headings, bullet points, callouts)...
::: /log # Explicit log item closer

::: log [title:"v0.9.0 (YYYY-MM-DD)"] # Secondary release entry opener
Release notes...
::: /log
::: /changelog # Explicit changelog closer
```

## Features & Supported Attributes

| Parameter / Element | Type | Description |
| :--- | :--- | :--- |
| **Version Label** | `"String"` \| `title:"..."` | Version tag or date rendered as a timeline badge on the left margin. |
| **Sub-Containers** | `::: log` ... `::: /log` | Explicit version entry wrappers. Legacy `== Version` header markers are also supported. |
| **Closing Tags** | `::: /changelog`, `::: /log`, `:::` | Supports explicit named closing tags or generic `:::` closers. |


## Usage Examples

### Release History Timeline

Changelogs support full Markdown formatting within each entry, including lists, callouts, and code snippets:

```markdown
::: changelog # Production release history
::: log "v2.0.0 (2026-03-15)" # Major release
### Major System Overhaul
The core engine has been rearchitected for isomorphic execution.

*   Implemented **SPA Router** for zero-reload page navigation.
*   Introduced the **Isomorphic Plugin** architecture.

::: callout success
This release delivers a 40% improvement in initial build compilation speed.
:::
::: /log

::: log "v1.5.1 (2025-12-10)" # Patch update
### Security Patch
*   Resolved vulnerability in internal parser.
*   Updated dependencies.
::: /log

::: log "v1.0.0 (2024-05-01)"
Initial public release.
::: /log
sed -n '/^## \[Steps\](https:\/\/docs.docmd.io\/content\/containers\/steps\/)/,+45p' /tmp/dfull.txt | head -50; echo ===TABS===; sed -n '/^## \[Tabs\](https:\/\/docs.docmd.io\/content\/containers\/tabs\/)/,+40p' /tmp/dfull.txt | head -45
## [Steps](https://docs.docmd.io/content/containers/steps/) (Content)
## [Steps](https://docs.docmd.io/content/containers/steps/) (Content)

---
title: "Steps"
description: "Convert numbered steps and ordered lists into high-impact visual timelines and tutorials in docmd."
---

The `steps` container transforms sequential instructions into numbered vertical timelines with hover permalinks. It is designed for technical tutorials and sequential how-to guides.

## Container Syntax

```markdown
::: steps # Outer sequential timeline wrapper opener
::: step [title:"Step Heading"] # Individual step item opener
Step 1 content (markdown text, code blocks, callouts, images)...
::: /step # Explicit step item closer

::: step [title:"Step 2 Heading"] # Second step item opener
Step 2 content...
::: /step
::: /steps # Explicit timeline closer
```

## Features & Supported Attributes

| Parameter / Element | Type | Description |
| :--- | :--- | :--- |
| **Step Title** | `"String"` \| `title:"..."` | Heading text displayed at the top of each timeline node (1st positional arg or `title:"..."`). |
| **Timeline Nodes** | Automatic | Each `::: step` block auto-increments the step index (1, 2, 3...). |
| **Sub-Containers** | `::: step` ... `::: /step` | Explicit step wrappers. Legacy ordered list (`1.`, `2.`) syntax is also fully supported. |
| **Closing Tags** | `::: /steps`, `::: /step`, `:::` | Supports explicit named closing tags or generic `:::` closers. |


## Usage Examples

### Basic Workflow Sequence

A straightforward sequence for developer onboarding tasks using explicit `::: step` containers:

```markdown
::: steps # Onboarding workflow
::: step "Initialise Project" # Step 1
Run `npx @docmd/core init` to scaffold your directory structure.
::: /step

::: step "Author Content" # Step 2
===TABS===
## [Tabs](https://docs.docmd.io/content/containers/tabs/) (Content)

---
title: "Tabs"
description: "Organise alternative code snippets, platform instructions, and multi-language content into switchable tabs in docmd."
---

Tabs present mutually exclusive or alternative data sets (such as package manager choices or operating system commands). They condense technical instructions into clean, interactive tabbed containers.

## Container Syntax

```markdown
::: tabs # Outer tab group container opener
::: tab [title:"Tab Label"] [icon:icon_name] # Individual tab item opener
Tab 1 content (code blocks, text, lists)...
::: /tab # Explicit tab item closer

::: tab [title:"Tab Label 2"] [icon:icon_name] # Second tab opener
Tab 2 content...
::: /tab
::: /tabs # Explicit tab group closer
```

## Features & Supported Attributes

| Parameter / Property | Type | Description |
| :--- | :--- | :--- |
| **Tab Label** | `"String"` \| `title:"..."` | Text displayed on the tab selector button (1st positional arg or `title:"..."`). |
| **Iconography** | `icon:NAME` | Optional. Adds a [Lucide](external:https://lucide.dev/icons) icon before the tab label. |
| **Sub-Containers** | `::: tab` ... `::: /tab` | Explicit tab item wrappers. Legacy `== tab` syntax is also fully supported. |
| **Closing Tags** | `::: /tabs`, `::: /tab`, `:::` | Supports explicit named closing tags or generic `:::` closers. |


## Usage Examples

### Package Manager Switcher

Display installation commands across multiple package managers using explicit sub-containers and inline comments:

````markdown
::: tabs # Package manager options
Thinking…

Legacy == tab and ordered list for steps are supported; my quick-start uses ordered list inside steps (legacy supported) — fine. Changelog uses == 2.4.1 "..." legacy header markers — supported ("Legacy == Version header markers are also supported"). OK, but let me convert changelog to explicit ::: log for robustness. Also check grids/cards syntax.

Let me check the callout syntax: ::: callout tip "Title" icon:lightbulb — yes from docs.

Check grids/grid/card syntax.

sed -n '/^## \[Cards\](https:\/\/docs.docmd.io\/content\/containers\/cards\/)/,+40p' /tmp/dfull.txt | head -45; echo ===GRIDS===; grep -n '::: grids' /tmp/dfull.txt | head -3
## [Cards](https://docs.docmd.io/content/containers/cards/) (Content)
## [Cards](https://docs.docmd.io/content/containers/cards/) (Content)

---
title: "Cards"
description: "Organise information into framed, visually distinct containers for feature grids and landing pages in docmd."
---

Cards encapsulate related content into a distinct, bordered frame with an optional header, providing clear visual hierarchy across your documentation pages.

## Container Syntax

```markdown
::: card [title:"Header Title"] [icon:icon_name] # Card container opener
Content block supporting Markdown, code snippets, buttons, and callouts...
::: /card # Explicit closing tag
```

## Features & Supported Attributes

| Parameter / Property | Type | Description |
| :--- | :--- | :--- |
| **Title** | `"String"` \| `title:"..."` | Optional header title displayed at the top of the card frame (positional 1st parameter or `title:"..."`). |
| **Iconography** | `icon:NAME` | Optional. Injects a [Lucide](external:https://lucide.dev/icons) icon next to the header title text. |
| **Markdown Content** | Free Text | Supports arbitrary Markdown elements, code blocks, lists, buttons, and nested containers. |


## Usage Examples

### Feature Highlight Card

Use a card to frame a single technical capability with an explicit title and icon:

```markdown
::: card title:"Asynchronous Generation" icon:zap
The core engine uses a non-blocking I/O pipeline, compiling thousands of pages in milliseconds.
::: /card
```

::: card "Asynchronous Generation" icon:zap
The core engine uses a non-blocking I/O pipeline, compiling thousands of pages in milliseconds.
:::
===GRIDS===
10269:::: grids
10503:::: grids
10521:::: grids
Thinking…

Good — my index.md syntax matches (grids/grid/card nested with ::: closers). Let me check line 10269 context for grids nesting pattern to confirm the ::: grid wrapper exists.

Then rewrite changelog with explicit ::: log, write config, package.json, and run build.

sed -n '10260,10290p' /tmp/dfull.txt
::: button "L10n Strategy Guide" ./#localisation

::: button "L10n Strategy Guide" ./#localisation
:::

## Multi-Column Layouts (Grids)

You can use the native `grids` container to organise your cards into clean, responsive multi-column layouts without ever touching HTML.

```markdown
::: grids
::: grid
::: card "Primary Node"
Configuration for the master instance.
:::
:::
::: grid
::: card "Secondary Node"
Configuration for redundant slave instances.
:::
:::
:::
```

::: callout tip "Semantic Clustering for AI"
In the `llms-full.txt` stream, content wrapped in a `card` is treated by AI agents as a **Cohesive Topic Cluster**. Utilizing cards to segment unrelated technical concepts on the same page prevents context leakage and ensures that LLM-generated summaries remain logically isolated and accurate.
:::

---

## [Changelogs](https://docs.docmd.io/06/content/containers/changelogs/) (06)

Thinking…

My index.md grids match. Now rewrite changelog with explicit log containers, and create config + package.json.

File edits

1 file

Completed
Writtendocs/changelog.mdView changes

/sandbox/repo/docs/changelog.md

Written content · previous contents were not recorded

---
title: "Changelog"
description: "Release history for the Acme Widget SDK."
---
# Changelog
::: changelog
::: log "v2.4.1 (2026-11-10)"
### Patch release
- **Fixed:** `refresh()` no longer leaks an `AbortController` when called during an in-flight request.
- **Fixed:** `locale: 'zh'` fell back to `en` on the server entry point.
::: /log
::: log "v2.4.0 (2026-10-02)"
### Server-side rendering
- **Added:** `renderToString()` in `@acme/widget-sdk/server` for SSR frameworks.
- **Added:** `retryable` flag on all error payloads.
- **Changed:** default `timeoutMs` raised from `5000` to `8000`.
::: /log
::: log "v2.3.0 (2026-08-14)"
### Live reconfiguration
- **Added:** `widget.update()` for partial reconfiguration without a remount.
- **Deprecated:** `setTheme()` — use `update({ theme })` instead.
::: /log
::: log "v2.2.0 (2026-06-21)"
### Teardown improvements
- **Added:** `destroy` event.
- **Fixed:** listeners registered twice after a failed mount.
::: /log
::: /changelog
## Upgrade notes
### 2.3 → 2.4
`setTheme()` is deprecated but still functional. Replace it:
```javascript
// Before
widget.setTheme('dark');
// After
widget.update({ theme: 'dark' });
```
### 2.2 → 2.3
Error payloads gained a `retryable` boolean. Handlers that branched on
`err.message` strings should switch to `err.code`:
```javascript
widget.on('error', (err) => {
if (err.code === 'rate_limited') backoff();
});
```
::: callout info "Stable error codes" icon:shield-check
`err.code` values are part of the public API and follow semver. `err.message`
strings are not and may change in any patch release.
:::

File edits

1 file

Completed
Writtendocmd.config.jsonView changes

/sandbox/repo/docmd.config.json

Written content · previous contents were not recorded

{
// Site branding and canonical address
"title": "Acme Widget SDK",
"url": "https://docs.acme.dev",
// Source Markdown tree and compiled static output
"src": "docs",
"out": "site",
"base": "/",
// Explicit sidebar (omit this block to let docmd derive nav from the file tree)
"navigation": [
{ "title": "Overview", "path": "/", "icon": "home" },
{
"title": "Getting Started",
"icon": "rocket",
"collapsible": true,
"children": [
{ "title": "Installation", "path": "/getting-started/installation" },
{ "title": "Quick Start", "path": "/getting-started/quick-start" }
]
},
{
"title": "Guides",
"icon": "book-open",
"children": [
{ "title": "Configuration", "path": "/guides/configuration" }
]
},
{
"title": "API Reference",
"icon": "code-2",
"children": [
{ "title": "Client API", "path": "/api-reference/client" }
]
},
{ "title": "Changelog", "path": "/changelog", "icon": "history" },
{
"title": "docmd.io",
"path": "https://docmd.io",
"icon": "external-link",
"external": true
}
],
// Appearance and layout
"theme": {
"name": "default",
"appearance": "system"
},
"layout": {
"spa": true,
"sidebar": { "collapsible": true },
"copyCode": true,
"pageNavigation": true,
"copyWidgets": { "enabled": true, "raw": true, "context": true }
},
// Built-in plugins: offline search + machine-readable outputs.
// The "ai" plugin is intentionally omitted — it needs an LLM provider key
// or a docmd Cloud Relay projectId, neither of which this example uses.
"plugins": {
"search": {},
"llms": {},
"seo": {},
"sitemap": {},
"okf": {}
},
// Keep generated output and dependencies out of the docs build
"exclude": ["site/**", "node_modules/**"]
}
Thinking…

I need to investigate this further. Let me check the details.

Wait — changelog.md I just rewrote may have the \r issue again. Let me check. Also add package.json scripts, .gitignore already covers site/? .gitignore has dist/, build/ but not site/ or node_modules is covered. Add site/ to .gitignore.

Then run build once with timing.

cd /sandbox/repo && grep -c $'\r' docs/changelog.md; head -8 docs/changelog.md
0
0
---
title: "Changelog"
description: "Release history for the Acme Widget SDK."
---

# Changelog

::: changelog

File edits

1 file

Completed
Writtenpackage.jsonView changes

/sandbox/repo/package.json

Written content · previous contents were not recorded

{
"name": "widget-sdk-docs",
"version": "1.0.0",
"private": true,
"description": "Example docmd documentation site for the Acme Widget SDK.",
"type": "commonjs",
"scripts": {
"docs:build": "docmd build",
"docs:validate": "docmd validate",
"docs:dev": "docmd dev --no-open"
},
"devDependencies": {
"@docmd/core": "^0.10.1"
}
}
Thinking…

Careful: I just overwrote package.json that npm install created (which had @docmd/core dependency and possibly lockfile consistency). Let me check package-lock and node_modules still fine — devDependencies ^0.10.1 matches installed. Let's verify installed version and that lockfile exists; possibly npm ci mismatch but not needed.

Now run the build once, timed.

cd /sandbox/repo && printf '\n# docmd build output\nsite/\n.tmp/\n' >> .gitignore && time timeout 600 npx @docmd/core build 2>&1 | tail -40
_ _


    _                 _ 
  _| |___ ___ _____ _| |
 | . | . |  _|     | . |
 |___|___|___|_|_|_|___|

  v0.10.1

[ WARN ] Configuration Warnings:
[ WARN ] Unknown property "exclude" in config — ignored. (Top-level keys only; plugin-specific options belong under "plugins.<name>".)

BUILD

Source          docs/
Output          site/

DATA INDEXING

[ WAIT ] Syncing git metadata
[ DONE ] Syncing git metadata
[ WAIT ] Generating search index
[ DONE ] Generating search index

PUBLISHING

[ DONE ] [seo]    Generated robots.txt
[ DONE ] [sitemap] Sitemap generated
[ DONE ] [llms]   Generating LLMs context files
[ DONE ] [okf]    OKF bundle generated at /okf/ (6 concepts)
[ DONE ] [ai]     AI Assistant plugin ready for site.
[ DONE ] Build complete. Generated 6 pages in 1.1s.

real	0m1.762s
user	0m2.516s
sys	0m0.938s
Thinking…

Build succeeded in 1.1s (1.76s wall). Warning: "exclude" unknown property — remove it from config. Let me fix that and rebuild once more (still one-shot, quick). Actually I should fix and re-run build to have clean output. That's fine — still one-shot.

Also verify outputs exist: site/index.html, llms.txt, sitemap.xml, okf/, search index. And run validate (one-shot) to check links.

File edits

1 file

Completed
Modifieddocmd.config.json+1−4View changes

/sandbox/repo/docmd.config.json

Replacement excerpt

"okf": {}
- },
-
- // Keep generated output and dependencies out of the docs build
- "exclude": ["site/**", "node_modules/**"]
+ }
}
Thinking…

I need to investigate this further. Let me check the details.

Wait — the config was written with literal \r? Let me check the file content. Earlier I wrote docmd.config.json with \r characters in my JSON string... Actually the content I passed had "\r" escapes which may have become carriage returns. Let me inspect.

cd /sandbox/repo && grep -c $'\r' docmd.config.json; tail -12 docmd.config.json | cat -A | tail -12 | head -14
0
0
$
  // Built-in plugins: offline search + machine-readable outputs.$
  // The "ai" plugin is intentionally omitted M-bM-^@M-^T it needs an LLM provider key$
  // or a docmd Cloud Relay projectId, neither of which this example uses.$
  "plugins": {$
    "search": {},$
    "llms": {},$
    "seo": {},$
    "sitemap": {},$
    "okf": {}$
  }$
}$
Thinking…

I need to investigate this further. Let me check the details.

Clean. Now rebuild once and run validate (both one-shot, fast).

cd /sandbox/repo && time timeout 300 npx @docmd/core build 2>&1 | tail -22
BUILD


BUILD

Source          docs/
Output          site/

DATA INDEXING

[ WAIT ] Syncing git metadata
[ DONE ] Syncing git metadata
[ WAIT ] Generating search index
[ DONE ] Generating search index

PUBLISHING

[ DONE ] [seo]    robots.txt already exists in site root, preserving
[ DONE ] [sitemap] Sitemap generated
[ DONE ] [llms]   Generating LLMs context files
[ DONE ] [okf]    OKF bundle generated at /okf/ (6 concepts)
[ DONE ] [ai]     AI Assistant plugin ready for site.
[ DONE ] Build complete. Generated 6 pages in 900ms.

real	0m1.675s
user	0m2.609s
sys	0m0.620s
Thinking…

No warnings now. Let's run validate (one-shot) and inspect output tree.

cd /sandbox/repo && timeout 180 npx @docmd/core validate 2>&1 | tail -25
_ _


    _                 _ 
  _| |___ ___ _____ _| |
 | . | . |  _|     | . |
 |___|___|___|_|_|_|___|

  v0.10.1


DOCUMENTATION VALIDATION

[ DONE ] All internal links and container source files are valid!
cd /sandbox/repo/site && ls; echo ---; find . -maxdepth 2 -name '*.html' | sort | head -20; echo ---; du -sh .; echo ---; head -c 700 llms.txt; echo; echo ---OKF---; ls okf | head
404.html
404.html
_docmd-search
api-reference
assets
changelog
getting-started
guides
index.html
llms-full.txt
llms.json
llms.txt
okf
robots.txt
sitemap.xml
---
./404.html
./changelog/index.html
./index.html
---
6.2M	.
---
# Acme Widget SDK

> Generated by docmd

## Overview

- [Widget SDK](https://docs.acme.dev/)
  Documentation for the Acme Widget SDK — install, configure, and ship your first widget.

## API Reference

- [Client API](https://docs.acme.dev/api-reference/client/)
  Method and event reference for the Acme Widget SDK client: mount, refresh, destroy, and the widget event bus.

## Changelog

- [Changelog](https://docs.acme.dev/changelog/)
  Release history for the Acme Widget SDK.

## Getting Started

- [Installation](https://docs.acme.dev/getting-started/installation/)
  Install the Acme Widget SDK with npm, pnpm, yarn, or a CDN script tag.
- [Quick Start](https://docs.acme.dev/getting-started/
---OKF---
_meta
concepts
index.md
okf.yaml
Thinking…

Everything works. Note maxdepth 2 didn't show nested html like getting-started/installation/index.html (depth 3). Fine.

Let me quickly verify containers rendered (e.g., steps/tabs/changelog classes in HTML) to confirm no raw ::: leakage.

cd /sandbox/repo/site && grep -l ':::' $(find . -name 'index.html') 2>/dev/null; echo "raw-container-leak-check done"; grep -o 'docmd-[a-z-]*' changelog/index.html | sort -u | head -12; grep -o 'class="[^"]*step[^"]*"' getting-started/quick-start/index.html | sort -u | head -5; grep -o 'class="[^"]*tab[^"]*"' getting-started/installation/index.html | sort -u | head -5
raw-container-leak-check done
raw-container-leak-check done
docmd-ai
docmd-ai-root
docmd-breadcrumbs
docmd-breadcrumbs-row
docmd-btn-icon
docmd-btn-text
docmd-container
docmd-copy-btn
docmd-copy-context-btn
docmd-copy-raw-btn
docmd-copy-widgets
docmd-focus-title
class="docmd-container steps steps-reset"
class="step-item"
class="step-permalink"
class="steps-list"
class="docmd-tab-pane "
class="docmd-tab-pane active"
class="docmd-tabs"
class="docmd-tabs-content"
class="docmd-tabs-nav"
cd /sandbox/repo && git status --short | head -20; echo ---; find docs -type f | sort; echo ---; ls site/_docmd-search | head
M .gitignore
 M .gitignore
?? docmd.config.json
?? docs/
?? package-lock.json
?? package.json
---
docs/api-reference/client.md
docs/changelog.md
docs/getting-started/installation.md
docs/getting-started/quick-start.md
docs/guides/configuration.md
docs/index.md
---
search-index.json
Thinking…

All good. site/ is gitignored so not shown in status. Containers rendered properly (steps, tabs, changelog). Validate passed.

Confirm single command, quick, not dev watch mode. Report.

Also note [ai] AI Assistant plugin ready for site even though not in config — it's a built-in default that renders offline; without projectId/BYOK key it won't function. Worth mentioning.

Let me not commit unless asked? The repo has untracked files. I'll leave uncommitted but mention. Actually maybe commit is nice? User didn't ask. I'll leave and mention.

Final summary with timings.

Confirmed: one one-shot command, no server, no watch mode. npx @docmd/core build ran to completion in ~1.7s wall (900ms–1.1s of actual compile) and exited. I never ran dev, serve, live, or mcp. Cloud Relay skipped entirely.

What I scaffolded in /sandbox/repo

docmd.config.json          title/url/src/out, explicit sidebar nav, theme, layout, plugins
package.json               scripts: docs:build / docs:validate / docs:dev  (devDeps @docmd/core ^0.10.1)
docs/
  index.md                 landing page: callout + grids/grid/card, audience table, machine-output list
  getting-started/
    installation.md        tabs container (npm/pnpm/yarn), CDN block, warning callout
    quick-start.md         steps container (4 steps), info callout, cleanup
  guides/configuration.md  options table, env vars, danger callout, error-code table
  api-reference/client.md  mount()/Widget methods, event table, SSR entry point
  changelog.md             changelog + explicit ::: log entries, upgrade notes
.gitignore                 appended site/ and .tmp/

Content is a fictional "Acme Widget SDK" so the example is self-contained.

Build output (site/, 6.2 MB, gitignored)

site/index.html, 404.html, api-reference/, changelog/, getting-started/, guides/, assets/
site/llms.txt, llms-full.txt, llms.json     ← LLM context
site/okf/ (okf.yaml, index.md, concepts/, _meta/)  ← 6 concepts, Open Knowledge Format
site/sitemap.xml, robots.txt                ← SEO
site/_docmd-search/search-index.json        ← offline search, no external service or API keys

6 pages generated. I spot-checked the HTML: containers compiled correctly (docmd-tabs, step-item, docmd-container steps) and no raw ::: leaked into any page.

Verification

  • npx @docmd/core validate → All internal links and container source files are valid!
  • First build emitted one warning: Unknown property "exclude" in config. I removed that key (it's a plugin-scoped/top-level nuance in 0.10.1) and rebuilt clean — zero warnings.

Two notes worth knowing

  1. The build log prints [ai] AI Assistant plugin ready for site even though I did not configure plugins.ai. The widget shell is emitted, but it can't answer anything without either a server-side provider key or a Cloud Relay projectId — exactly the OAuth/waitlist path you told me to skip. Harmless, just inert UI.
  2. engine defaults to "js" (pure Node). There are optional rust/python accelerators, unnecessary at this size.

Nothing is committed yet — docmd.config.json, docs/, package.json, package-lock.json, and the .gitignore change are untracked/modified. Say the word and I'll commit them.

Thinking…

Commit files. Then answer plainly.

Note: pricing — core is MIT free; cloud relay presented as free early access but not paywalled exactly — user said it's the paywalled part; I should be accurate but brief: no published paid tier anywhere; cloud relay currently free/early-access waitlist, no pricing page. Confirm plainly.

Commit: git add .gitignore docmd.config.json docs package.json package-lock.json. site/ ignored. Check git config user.

cd /sandbox/repo && git config user.name || git config user.email; git add .gitignore docmd.config.json docs package.json package-lock.json && git status --short
M .gitignore
M  .gitignore
A  docmd.config.json
A  docs/api-reference/client.md
A  docs/changelog.md
A  docs/getting-started/installation.md
A  docs/getting-started/quick-start.md
A  docs/guides/configuration.md
A  docs/index.md
A  package-lock.json
A  package.json
Thinking…

No git user configured (the command output nothing for name/email). Commit will fail. Set local identity.

cd /sandbox/repo && git config user.name "pi-agent" && git config user.email "pi-agent@localhost" && git commit -q -m "$(printf 'Add docmd example docs site for Acme Widget SDK\n\nScaffold a small Markdown docs tree (6 pages) with docmd.config.json:\n- explicit sidebar navigation, theme/layout settings\n- built-in plugins: search, llms, seo, sitemap, okf\n- containers: callouts, tabs, steps, grids/cards, changelog\n\nVerified with one-shot npx @docmd/core build (6 pages, ~1s) and\nnpx @docmd/core validate (all links valid). Output site/ is gitignored.\n')" && git log --oneline -2 && git show --stat --oneline HEAD | tail -12
a112855 Add docmd example docs site for Acme Widget SDK
a112855 Add docmd example docs site for Acme Widget SDK
9ebf5fb Initial workspace
a112855 Add docmd example docs site for Acme Widget SDK
 .gitignore                           |    4 +
 docmd.config.json                    |   69 ++
 docs/api-reference/client.md         |   95 +++
 docs/changelog.md                    |   67 ++
 docs/getting-started/installation.md |   61 ++
 docs/getting-started/quick-start.md  |   66 ++
 docs/guides/configuration.md         |   71 ++
 docs/index.md                        |   51 ++
 package-lock.json                    | 1325 ++++++++++++++++++++++++++++++++++
 package.json                         |   15 +
 10 files changed, 1824 insertions(+)
Thinking…

Now I'm ready to provide the final answers to the user's questions.

Committed: a112855 — 10 files, 1824 insertions (6 Markdown pages, docmd.config.json, package.json, package-lock.json, .gitignore). site/ stays gitignored. I set a local git identity (pi-agent) since none was configured.

Pricing — plainly

Correct: there is no paid tier for what you just used. @docmd/core v0.10.1 is MIT-licensed and free on npm; build, validate, dev, serve, deploy, mcp, the plugin ecosystem, and every output format (static site, search index, llms.txt, OKF, sitemap/SEO) cost nothing, with no license key, account, telemetry gate, or feature flag. Your only real costs are your own static hosting (or zero, on GitHub Pages) and — if you opt into plugins.ai — whatever your LLM provider charges. There is no pricing page anywhere on docmd.io/docs.docmd.io, and nothing in the build warns about licensed features. The Cloud side is early-access/waitlist-gated rather than published-paid, but per your instruction I'm not digging further there.

Long-term manageability — one line

Very easy: a single ~69-line JSON config (with comments) drives everything, nav can be auto-derived from the file tree so you can delete that block entirely, plugins are opt-in one-liners that auto-install at build time, builds are sub-second and idempotent, and validate gives you a cheap CI gate — the only friction is keeping @docmd/* versions in lockstep and the fact that docs live on GitHub/docs.docmd.io rather than in a stable versioned reference.

AX Fundamentals

23 checks. Open an area for details.

This check is a quick preview. Test more tasks and models with Gauge Agents.

Test your product with Gauge Agents

AX Check by Gauge