Open fatalaa opened 4 years ago
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.
sounds like a good improvement. I'll merge it when you submit it.
thanks!
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.