mkdocs-exclude
mkdocs-exclude copied to clipboard
Question: Possible to toggle excludes?
We have some content that we want to exclude only sometimes, e.g. when we build the docs for the "community edition" of our software. Other times, all docs shall be included. Files that we never want to include would just be completely removed from mkdocs.
Question: Is there a way to toggle the exclusion, e.g. via an environment variable, or switch?
@tsjensen I had similar case. Tried to use mkdocs-exclude plugin but it does not meet my requirements and unfortunately, it looks like it's not maintained anymore. I developed a plugin for includes/excludes that supports external config with rules based on env var.
You can find it here: https://github.com/DariuszPorowski/mkdocs-file-filter-plugin#external-config
It works for me, and I am happy to get feedback, ideas, improvements, etc.