-
Notifications
You must be signed in to change notification settings - Fork 51
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
Allow opt-in of page rendering, instead of opt-out #162
Comments
Opt-inThe solution will be to use in the header: ---
# YAML header
render_macros: true
--- Opt-in is set in the config file, by specifying that no page will be rendered by default: plugins:
- search
- macros:
render_by_default: false Opt-outThis is the default case. If you want to be explicit, you can set the parameter In the page, use the following directive: ---
# YAML header
render_macros: false
--- This one will be maintained for compatibility (deprecated): ---
# YAML header
ignore_macros: true
--- |
Would you like me to rework the PR? |
@attie Thanks! Actually I just implemented and tested it as I went. I should be able to push it today - few lines of code. Most of the work is was testing and documentation. But you can be credited with the idea! |
- Document opt-in and various fixes of documentation - Demote `macro_info()` (start with header of level 2), #123
@fralau Perfect, thanks very much! Any idea when you plan to push to PyPi? (no hurry, I'd just like to know so I can drop the git reference) |
Thanks to both of you, for your input and for testing! That's part of the 1.0.0 project, and I will push it to pypi as soon as it is ready. The more people test it, the better it is! |
Large projects sometimes have too many pages, to allow them to change them all.
In those cases, it would be easier to render only the pages that require it.
See PR (not used): #159 (comment)
The text was updated successfully, but these errors were encountered: