Patches Jinja2 v3 to restore compatibility with earlier Sphinx versions.
Also makes some Sphinx versions work correctly on Python 3.10.
The patches can be disabled by setting the environment variable NO_SPHINX_JINJA2_COMPAT to 1. (v0.2.0 and newer only)
| Tests | |
|---|---|
| PyPI | |
| Anaconda | |
| Activity | |
| QA | |
| Other | 
sphinx-jinja2-compat can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install sphinx-jinja2-compatTo install with conda:
- First add the required channels
 $ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding
- Then install
 $ conda install sphinx-jinja2-compat