mkdocs-pdf-export-plugin icon indicating copy to clipboard operation
mkdocs-pdf-export-plugin copied to clipboard

Create "enabled" option and deprecate enabled_if_env

Open majkinetor opened this issue 4 years ago • 1 comments

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.

majkinetor avatar Sep 02 '21 09:09 majkinetor

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

PR: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin/pull/63

timvink avatar Sep 11 '21 18:09 timvink