mkdocs-pdf-export-plugin
mkdocs-pdf-export-plugin copied to clipboard
Create "enabled" option and deprecate enabled_if_env
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.
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