sphinx-jinja
includes jinja templates in a documentation
Decision gist · record as of 2026-08-14
Yes, if you need dynamic content generation in Sphinx and are comfortable with dormant maintenance. The package is stable, has no known vulnerabilities, and supports Python 3.6 through 3.10. However, because the last release was in 2022 and the repository has seen no commits since 2023-11-02, do not expect bug fixes or compatibility updates for future Sphinx or Python releases. Suitable for established projects where the feature set is complete; risky for new projects requiring ongoing support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Sphinx, Jinja2, and docutils to be installed; Python >=3.6,<4 required.
- Low friction install with three stable dependencies.
- Maintenance is dormant—last release was 2022-07-05 and no commits since 2023-11-02—so expect no active support, though the package remains functional for current Python versions.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing use in commercial and private projects with minimal restrictions.
last release 2022-07-05 (1501 days) · last repo commit 2023-11-02 · 30 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,888,200 downloads/mo, #2,842 on PyPI
Alternatives
Verify before relying
pip install sphinx-jinja
In conf.py:
extensions = ['sphinx_jinja']
jinja_contexts = {'ctx': {'items': ['a', 'b']}}
In your .rst file:
.. jinja:: ctx
{% for item in items %}
- {{ item }}
{% endfor %}- Whether the package works reliably with recent Sphinx versions beyond 2022.
- Community activity or third-party maintenance status beyond the original repository.
- Compatibility with Python versions released after the last package update.
What it is and what it does
sphinx-jinja is a Sphinx extension that adds a jinja directive to reStructuredText, allowing you to embed Jinja2 template code directly in your documentation source. At build time, the extension renders these templates using contexts you define in your Sphinx conf.py, producing dynamic RST content that Sphinx then processes normally. You configure contexts, custom filters, tests, globals, and Jinja environment settings in your configuration file, then reference them by name in your RST directives.
The extension is useful when your documentation needs to be generated from data structures, iterate over collections, or apply conditional logic—tasks that plain RST cannot express. You can inline templates in your RST files or load them from separate Jinja files using the file option. It also supports header-level management and debug output to inspect the generated RST before final rendering.
Use it for
- Generate API documentation tables or lists by iterating over structured data in conf.py.
- Conditionally include or exclude documentation sections based on configuration flags.
- Apply custom formatting to template variables using Jinja filters.
- Load and render reusable documentation templates from external Jinja files.
- Maintain DRY documentation by templating repetitive content patterns.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need dynamic content generation in Sphinx and are comfortable with dormant maintenance.
The package is stable, has no known vulnerabilities, and supports Python 3.6 through 3.10. However, because the last release was in 2022 and the repository has seen no commits since 2023-11-02, do not expect bug fixes or compatibility updates for future Sphinx or Python releases. Suitable for established projects where the feature set is complete; risky for new projects requiring ongoing support.
Install
sphinx-jinja on PyPI
Before you install
Low friction install with three stable dependencies. Maintenance is dormant—last release was 2022-07-05 and no commits since 2023-11-02—so expect no active support, though the package remains functional for current Python versions.
Requires Sphinx, Jinja2, and docutils to be installed; Python >=3.6,<4 required.
License in practice
MIT license is permissive, allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install sphinx-jinja
In conf.py:
extensions = ['sphinx_jinja']
jinja_contexts = {'ctx': {'items': ['a', 'b']}}
In your .rst file:
.. jinja:: ctx
{% for item in items %}
- {{ item }}
{% endfor %}
Verify before relying
- Whether the package works reliably with recent Sphinx versions beyond 2022.
- Community activity or third-party maintenance status beyond the original repository.
- Compatibility with Python versions released after the last package update.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.6,<4 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesJinja2docutilssphinx |
| Maintenance | Dormant 1,501 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,888,200 / month, #2,842 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: sphinx_jinja-2.0.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “sphinx jinja template extension”
- sphinx-jinjaA Sphinx extension that lets you embed Jinja2 templates directly into…
- Pallets-Sphinx-ThemesProvides Sphinx themes styled for Pallets project documentation…
- sphinx-immaterialA Sphinx documentation theme that adapts the Material Design…
Give your agent the search over MCP, or paste the wish link into any chat.
More Sphinx packages
Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.
Install it if you need to programmatically read and extract structured data from Python docstrings.
Sphinx generates professional documentation from reStructuredText source files, producing HTML, PDF, EPUB, and other formats with automatic cross-references, code highlighting, and hierarchical navigation.
A Sphinx extension that outputs documentation in serialized HTML formats (JSON and pickle) alongside standard HTML.
Alabaster is a clean, responsive Sphinx theme for documentation that requires Python 3.10 or newer and Sphinx 6.2 or newer.
A Sphinx extension that generates HTML help files from reStructuredText documentation source.
A Sphinx extension that converts documentation source files into QtHelp format, enabling integration with Qt-based help systems and documentation viewers.
However, be aware that maintenance is dormant—if you rely on it long-term, monitor Sphinx compatibility and consider whether QtHelp remains the right format for your…
See also sphinx-jinja2-compat · sphinx-substitution-extensions · sphinxcontrib.datatemplates · sphinx_mdinclude · Jinja2 · sphinx-markdown-builder · sphinxcontrib-googleanalytics · sphinxemoji · sphinxcontrib-video · sphinx-favicon