A mkdocs plugin that excludes files based on a list of frontmatter tags from being included in the final mkdocs output.
Project description
MKDocs Exclude Tagged Files
A simple plugin for excluding files from being included in the mkdocs output based on tags in their frontmatter.
Configuration
Basic Configuration:
plugins:
- mkdocs_exclude_tagged_files:
tags_to_exclude: ["confidential", "excluded"]
This configuration will exclude all files that have one of the tags "confidential" or "excluded" in their frontmatter.
For example this file will be excluded:
---
tags: ["confidential", "someothertag"]
---
# Content
By default, the plugin strips leading #
-symbols from tags, so the tag #excluded
will be treated the same as excluded
.
If you want to disable this behavior set the config value strip_leading_hashtags
to false
.
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
Built Distribution
Close
Hashes for mkdocs-exclude-tagged-files-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6009047a5a6c8dc5e55f2da66a3ac3a0c7e62fb1d02fe424abf7171c9a670f6c |
|
MD5 | 50e4f74751f8bd0486276efb5d6a65f8 |
|
BLAKE2b-256 | e7c9c68bab40e07bfc17634dd88f809a86153dde78fef6e3d49d0b09ced4984f |
Close
Hashes for mkdocs_exclude_tagged_files-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c35f8d35bb1b0a5d6150d4c1cb3ceeb80669ac8c5060330d3404f6e5af20d3 |
|
MD5 | 7a8fbdc6ecb4e57f5b2c18a2779167f4 |
|
BLAKE2b-256 | 7cbde98524ed95b5f8fa0e1e1d8064ebb854b44003c6e3e8eeeab4748c1f4251 |