Skip to main content

MkDocs plugin with floating button to create ADR via web UI

Project description

MkDocs ADR Plugin

A plugin for MkDocs that adds a floating button to create Architecture Decision Records (ADR) directly from the documentation UI.

Features

  • 🔘 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)

Installation

pip install mkdocs-adr-plugin

Usage

Start the server

From your project root (where mkdocs.yml is located), run:

mkdocs-adr

This starts both the ADR API (FastAPI) and mkdocs serve in one terminal.

Create an ADR

  1. Open http://localhost:8000
  2. Click the + button in the bottom‑right corner
  3. 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
  4. Click Save – the new ADR file will be created in docs/adr/ and the page reloads.

Configuration in mkdocs.yml

plugins:
  - adr_plugin:
      api_url: http://localhost:8765   # optional, default is this

Custom Templates

Put .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.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_adr_plugin-0.2.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_adr_plugin-0.2.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_adr_plugin-0.2.0.tar.gz.

File metadata

  • Download URL: mkdocs_adr_plugin-0.2.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for mkdocs_adr_plugin-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e45502c55e6ceb2095fcbafc9652159af954f29a76cfc76f123b9a20a7a05bc0
MD5 1ff3bec4a9a6546d3aaea8dfa14bd01a
BLAKE2b-256 f08eb3ccabf2dde0c461e3c607a12a74d480006aecdef47f05ec9450f9d9bd80

See more details on using hashes here.

File details

Details for the file mkdocs_adr_plugin-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_adr_plugin-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bb517cb6feec2867f2c57de7bdf3ac46323fcd7eeff82091ae90791cfab8e0c1
MD5 f6b4c712e924606744ebe4c5f56ca7fa
BLAKE2b-256 923d8455f4332948bb80d19a5f18004c34ef107704da41e7ddcb5ef7d8d026a0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page