name: mkdocs-documentation
description: MkDocs Material documentation. Use when writing or validating docs/ content: admonitions, Mermaid, code annotations, include-markdown, navigation, and Claude skill/agent docs in docs/dev/ai/.
MkDocs Material Documentation
Write and maintain documentation using MkDocs Material in the docs/ directory.
Project-Specific Claude Documentation
Always check first for project-specific Claude configurations:
docs/dev/ai/skills/SKILL-NAME.md - Project-specific Claude skill docs
docs/dev/ai/agents/AGENT-NAME.md - Project-specific Claude agent docs
These take precedence over general patterns.
Quick Reference
Diagram Rules
REQUIRED SUB-SKILL: Use mermaidjs-v11 for all Mermaid diagram creation.
Diagrams with more than 15 nodes or lines must be split:
- Create a top-level overview showing high-level blocks only
- Create per-component deep-dives with internal details
- Store each diagram in
docs/architecture/_includes/ as a separate .md file
- Reference from pages using
{% include-markdown %} directives
- Add
hide: true to _includes/.pages to exclude from navigation
See includes.md for the full pattern.
Common Patterns
Admonition with Code
!!! example "Usage"
```python
from module import func
func()
```
Tabbed Content
=== "pip"
```bash
pip install package
```
=== "uv"
```bash
uv add package
```
Workflow
- Write content — use references for formatting syntax
- Diagrams — invoke
mermaidjs-v11 skill, split large diagrams into _includes/
- Preview —
uv run mkdocs serve for live reload
- Validate —
uv run mkdocs build --strict catches issues
Validation Commands
uv run mkdocs serve
uv run mkdocs build --strict
uv run mkdocs serve --dirty
Dependencies
Managed via pyproject.toml + uv sync:
[project]
dependencies = [
"mkdocs-material",
"mkdocs-awesome-nav",
"mkdocs-glightbox",
"mkdocs-macros-plugin",
"mkdocs-include-markdown-plugin",
]
Dockerfile uses uv from ghcr.io/astral-sh/uv:0.11.0.