mkdocs-exclude icon indicating copy to clipboard operation
mkdocs-exclude copied to clipboard

Question: Possible to toggle excludes?

Open tsjensen opened this issue 3 years ago • 1 comments

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 avatar Dec 16 '21 11:12 tsjensen

@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.

DariuszPorowski avatar Mar 26 '23 19:03 DariuszPorowski