automatically use version number set by cmake in doc

This commit is contained in:
Alexander Hampel 2022-03-10 13:35:14 -05:00
parent 125eddfa7c
commit 2d7a5748d8
2 changed files with 9 additions and 2 deletions

View File

@ -49,6 +49,13 @@ autosummary_imported_members=False
project = '@PROJECT_NAME@'
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 = '2017-2018 N. Wentzell, O. Parcollet 2018-2021 The Simons Foundation, authors: N. Wentzell, D. Simons, H. Strand, O. Parcollet'
mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=default"

View File

@ -3,9 +3,9 @@
app4triqs
*********
.. sidebar:: app4triqs 3.0.0
.. sidebar:: app4triqs |PROJECT_VERSION|
This is the homepage of app4triqs v3.0.0.
This is the homepage of app4triqs |PROJECT_VERSION|.
For changes see the :ref:`changelog page <changelog>`.
.. image:: _static/logo_github.png