MkDocs Meta Manager
mkdocs-meta-manager is an MkDocs plugin that facilitates the management of meta tags across folders and files within your documentation site. It allows for hierarchical merging of metadata from `.meta.yml` files, simplifying the application of front matter to multiple pages. The current version is 1.1.0, and it has a moderate release cadence driven by feature enhancements and bug fixes.
Warnings
- breaking In version 1.0.0, the configuration option `merge_tags` was renamed and generalized to `merge_entries`. Projects upgrading from versions prior to 1.0.0 will need to update their `mkdocs.yml`.
- gotcha The plugin looks for meta files named `.meta.yml` by default. If your meta files have a different name, you must configure the `meta_filename` option in `mkdocs.yml`, otherwise, your metadata will not be applied.
- breaking The upcoming MkDocs 2.0 is expected to be a complete rewrite, fundamentally changing the plugin system and potentially breaking all existing plugins, including `mkdocs-meta-manager`. The `mkdocs-material` team has explicitly stated they will not support MkDocs 2.0, indicating widespread incompatibility.
- gotcha Prior to version 1.1.0, there was a known issue with path separators, particularly affecting Windows compatibility. This could lead to meta files not being correctly discovered or applied.
Install
-
pip install mkdocs-meta-manager
Imports
- meta-manager
plugins: - meta-manager
Quickstart
plugins:
- search
- meta-manager:
meta_filename: .meta.yml # Default value, can be customized
merge_entries: [tags, authors] # Example of merging tags and authors
# In your docs directory, create a .meta.yml file, e.g.:
# docs/chapter1/.meta.yml
# tags:
# - Chapter 1
# authors:
# - John Doe