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

Create "enabled" option and deprecate enabled_if_env #103

Open
majkinetor opened this issue Sep 2, 2021 · 1 comment
Open

Create "enabled" option and deprecate enabled_if_env #103

majkinetor opened this issue Sep 2, 2021 · 1 comment

Comments

@majkinetor
Copy link

majkinetor commented Sep 2, 2021

Version 1.2 of mkdocs supports environment vars in configuration.

This means that we can now have options like this:

enabled: !ENV ENABLE_PDF_EXPORT

or

enabled: !ENV [ENABLE_PDF_EXPORT, 'true']

instead

enabled_if_env: ENABLE_PDF_EXPORT

and enabled_if_env should be deprecated.

@timvink
Copy link
Contributor

timvink commented Sep 11, 2021

Just added this feature to one of my plugins, including docs. Feel free to copy/paste and make a PR for this plugin!

PR: timvink/mkdocs-git-revision-date-localized-plugin#63

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