lsst-sqre / documenteer

Sphinx extensions, configurations, and tooling for Rubin Observatory documentation projects
https://documenteer.lsst.io
MIT License
5 stars 3 forks source link

DM-33988: Support sphinx-jinja 2, with backward compatibility for sphinx-jinja 1 #109

Closed jonathansick closed 2 years ago

jonathansick commented 2 years ago

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.