includes jinja templates in a documentation
Project description
sphinx-jinja
A sphinx extension to include jinja based templates based documentation into a sphinx doc
Usage
In your rst doc, you can use the following snippet to use a jinja template to generate your doc
.. jinja:: first_ctx
{% for k, v in topics.items() %}
{{k}}
~~~~~
{{v}}
{% endfor %}
In your config file, you can create or load the contexts needed for your jinja templates
jinja_contexts = { 'first_ctx': {'topics': {'a': 'b', 'c': 'd'}} }
Each element of the jinja_contexts dictionary is a context dict for use in your jinja templates
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for sphinx_jinja-0.1.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8d8a2b3fc57594d1d1f0b38d4451fac36256470fa13e9fd40aceed131824f64 |
|
MD5 | 71fb47e14828f69e93aa1d1e60fc56be |
|
BLAKE2b-256 | e76f408ab1406b516725ae43a8a6a8bfe9fc721b153c24a5498282821c4898b9 |