MkDocs
$ mkdocs Official Low RiskMkDocs (mkdocs) builds clean project documentation websites from Markdown files and mkdocs.yml, powering ecosystems like Material for MkDocs. Its mkdocs build --strict flag turns warnings and broken internal links into non-zero exit failures ideal for agent CI verification.
brew install mkdocs mkdocs validates mkdocs.yml, internal doc links, and static HTML output directly on the local repository.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
mkdocs build --strict enforces zero warnings/broken links with deterministic exit codes and zero interactive prompts.
--strictconverts warnings and broken relative links into hard failures- Clean CLI flags (
-f,-d,-q)
Local static build is safe; only mkdocs gh-deploy touches remote git branches.
- Read/build operations stay strictly local
gh-deployis an explicit separate subcommand
Python package installable via pip, uvx, or Homebrew, though theme/plugin dependencies (mkdocs-material) usually require a project virtualenv.
- Available on PyPI (
mkdocs),uvx, and Homebrew
Extremely widespread docs stack for Python, API, and developer portals.
- Rich plugin ecosystem (
mkdocs-material,mkdocstrings)
Official mkdocs/mkdocs project maintained under BSD-2-Clause.
- Official MkDocs GitHub organization
Clear CLI reference and configuration guide on mkdocs.org.
- Official docs at mkdocs.org/user-guide/cli/
Security, Auth & Guardrails
No credentials required for local builds; mkdocs gh-deploy pushes via local git credentials if invoked.
Free open-source software (BSD-2-Clause).
# MkDocs Agent Rules - Always run `mkdocs build --strict` after documentation edits so broken nav entries or internal links fail CI immediately. - Never run `mkdocs gh-deploy` autonomously; let CI or a human publish to `gh-pages`. - Run inside the project virtualenv when `mkdocs-material` or plugins are declared.
Agent-Ready Command Recipes
Safe Read-Only Queries
mkdocs --version
Verifies the active mkdocs Python package and version.
Controlled Writes & Previews
mkdocs build --strict -d ./site
Compiles the static site into ./site and fails with a non-zero exit code on broken internal links or config warnings.
Strengths for Agents
- +
mkdocs build --strictcatches broken internal links, missing nav files, and YAML typos immediately. - + Simple
mkdocs.ymlstructure is easy for coding agents to update safely. - + Wide Python ecosystem support including Material for MkDocs and
mkdocstrings.
Caveats & Pitfalls
- ! Projects using plugins like
mkdocs-materialrequire running inside the matching Python virtualenv rather than an isolated global binary. - !
mkdocs serveblocks continuously until killed.