Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Possible to toggle excludes? #10

Open
tsjensen opened this issue Dec 16, 2021 · 1 comment
Open

Question: Possible to toggle excludes? #10

tsjensen opened this issue Dec 16, 2021 · 1 comment

Comments

@tsjensen
Copy link

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?

@DariuszPorowski
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants