diff --git a/doc/conf.py.in b/doc/conf.py.in index 017200e1..cfdd0340 100644 --- a/doc/conf.py.in +++ b/doc/conf.py.in @@ -52,6 +52,13 @@ autosummary_imported_members=False project = 'TRIQS DFTTools' version = '@PROJECT_VERSION@' +# this makes the current project version available as var in every rst file +rst_epilog = """ +.. |PROJECT_VERSION| replace:: {version} +""".format( +version = version, +) + copyright = '2011-2021' mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=default" diff --git a/doc/index.rst b/doc/index.rst index 6624d170..4b11af29 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -4,9 +4,9 @@ DFTTools ######### -.. sidebar:: DFTTools 3.0.0 +.. sidebar:: DFTTools |PROJECT_VERSION| - This is the homepage of DFTTools v3.0.0. + This is the homepage of DFTTools |PROJECT_VERSION| For changes see the :ref:`changelog page `. .. image:: _static/logo_github.png