MkDocs Framework Adapter
Detection
Detected when mkdocs.yml or mkdocs.yaml exists in project root.
Configuration Parsing
Key fields to extract from mkdocs.yml:
site_name: My Project
docs_dir: docs # default: docs/
nav:
- Home: index.md
- API Reference:
- Auth: api/auth.md
- Users: api/users.md
- Guides:
- Getting Started: guides/getting-started.md
theme:
name: material # most common theme
docs_dir: the documentation root (defaultdocs/)nav: ordered navigation structure mapping titles to file paths- All paths in
navare relative todocs_dir
Doc Root
Value of docs_dir in mkdocs.yml, defaults to docs/.
Code-to-Doc Mapping
From Nav
Parse nav entries to find existing doc pages. Match source files to doc pages by:
- Module name matches page filename
- Directory structure mirrors source structure under
api/orreference/
Convention-Based
| Source | Doc Candidate |
|---|---|
src/auth/login.ts |
docs/api/auth.md or docs/reference/auth/login.md |
src/models/user.py |
docs/api/models/user.md or docs/reference/user.md |
Document Template
MkDocs pages use standard Markdown with optional Material theme admonitions:
# Auth Module
Brief description.
## API Reference
### `login(username, password)`
Authenticates a user and returns a session token.
**Parameters:**
| Name | Type | Description |
|------|------|-------------|
| `username` | `str` | The user's login name |
| `password` | `str` | The user's password |
**Returns:** `Session` — An authenticated session object.
!!! warning
Passwords are transmitted in plaintext unless TLS is configured.
!!! example
```python
session = login("admin", "secret")
```
Material Theme Extensions
If using Material theme, docs may include:
!!! note/warning/tip/exampleadmonitions::: detailscollapsible sections{{ var }}Jinja template variables (frommkdocs-macros-plugin)
These are valid MkDocs content — do not flag as quality issues.