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.
Instalation
Run pip install --upgrade mkdocs-exclude-tagged-files
Configuration
Basic Configuration in the mkdocs.yml
file:
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
Hashes for mkdocs-exclude-tagged-files-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2091a0d16e3c4e49f151e28e2a47151ff122d5aa96e37aad27267109b1a5a32e |
|
MD5 | fcc89e96c3d9c5ec910f34ca2925a6c6 |
|
BLAKE2b-256 | 203976400176e2fac2ab8a5e425e42223420f896046b2ff773c52907ce50bb65 |
Hashes for mkdocs_exclude_tagged_files-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 721005bdabbb04212d135016df8be36c27e050616d219ce27be94c87c8edcd7d |
|
MD5 | 71d8b3de78fecdc1160d6a386296c416 |
|
BLAKE2b-256 | ca5bdcc1ad2ba6a6734e377794edb472162ac319584800fd535a82b12bc8cdcc |