sphinx-jinja 2 adopted sphinx_jinja as its extension name, which requires an update to the documenteer.conf.pipelines configuration that uses it. To provides backwards support for sphinx-jinja 1, we're evaluating the environment's installed version of sphinx-jinja and customizing the extension name based on that. For this we've created a documenteer.packagemetadata module and Semver class, along with using importlib.metadata to get the version from a package.
sphinx-jinja 2 adopted
sphinx_jinja
as its extension name, which requires an update to thedocumenteer.conf.pipelines
configuration that uses it. To provides backwards support for sphinx-jinja 1, we're evaluating the environment's installed version of sphinx-jinja and customizing the extension name based on that. For this we've created adocumenteer.packagemetadata
module andSemver
class, along with usingimportlib.metadata
to get the version from a package.