A plugin for MkDocs that adds a floating button to create Architecture Decision Records (ADR) directly from the documentation UI.
- 🔘 Floating button with a modal form
- ✏️ Edit template content before saving
- 🔢 Automatic numbering and date substitution
- 📁 Select template from
docs/adr/templates/ - 🌐 Works with any MkDocs theme
- 🐧 Cross‑platform (Linux, macOS, Windows)
pip install mkdocs-adr-pluginFrom your project root (where mkdocs.yml is located), run:
mkdocs-adrThis starts both the ADR API (FastAPI) and mkdocs serve in one terminal.
- Open
http://localhost:8000 - Click the + button in the bottom‑right corner
- Fill in the form:
- Slug – filename part (only letters, digits, hyphen, underscore)
- Title – full ADR title (optional, defaults to slug)
- Template – choose one from
docs/adr/templates/ - Content – edit the Markdown content as needed
- Click Save – the new ADR file will be created in
docs/adr/and the page reloads.
plugins:
- adr_plugin:
api_url: http://localhost:8765 # optional, default is thisPut .md files inside docs/adr/templates/. You can use the following placeholders:
{{NUMBER}}– auto‑incremented number (0001, 0002…){{TITLE}}– title from the form{{DATE}}– current date (ISO 8601)
The default template is created automatically on first run.
MIT