automatically use version number set by cmake in doc

This commit is contained in:
Alexander Hampel 2022-03-10 13:25:16 -05:00
parent 6c94c72a8f
commit d2f7326a80
2 changed files with 9 additions and 2 deletions

View File

@ -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"

View File

@ -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 <changelog>`.
.. image:: _static/logo_github.png