MkDocs Auto Tag Plugin

0.1.3 · active · verified Sat Apr 11

The mkdocs-auto-tag-plugin is an MkDocs plugin designed to automatically add tags to documentation pages based on their file path or name. It uses glob patterns and regular expressions to define rules for tag assignment. The current version is 0.1.3, released in August 2023, and it is actively maintained with a focus on MkDocs 1.x compatibility.

Warnings

Install

Imports

Quickstart

To enable the plugin, add `auto_tag` to your `plugins` section in `mkdocs.yml` and define tagging rules using `pattern` (glob or regex) and `tags`. This example tags files ending with '_API_Reference.md' as 'API-Reference' and files within 'dev_guide/' as 'Development-Guide'.

plugins:
  - auto_tag:
      rules:
        - pattern: '.*_API_Reference\.md$'
          tags:
            - 'API-Reference'
        - pattern: 'dev_guide/.*'
          tags:
            - 'Development-Guide'
        - pattern: 'docs/README.md'
          tags:
            - 'Home'

view raw JSON →