We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It would be useful to have access for the Sphinx context variables. I'd use this with conditional rendering(where Sphinx's ifconfig falls short) like:
ifconfig
.. jinja:: my_context {% if platform == 'something' %} * An element that is only available on the platform `something` {% endif %}
So i wouldn't have to write this in my conf.py:
conf.py
jinja_contexts: {'my_context': {'platform': 'something'}}
as I'd pass the platform variable via command line to Sphinx.
platform
I can implement this, I just like to have your approval on it.
The text was updated successfully, but these errors were encountered:
sounds like a good improvement. I'll merge it when you submit it.
thanks!
Sorry, something went wrong.
No branches or pull requests
It would be useful to have access for the Sphinx context variables.
I'd use this with conditional rendering(where Sphinx's
ifconfig
falls short) like:So i wouldn't have to write this in my
conf.py
:as I'd pass the
platform
variable via command line to Sphinx.I can implement this, I just like to have your approval on it.
The text was updated successfully, but these errors were encountered: