Skip to content

Commit

Permalink
automatically use version number set by cmake in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
the-hampel committed Mar 10, 2022
1 parent 6c94c72 commit 03c1af5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions doc/conf.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03c1af5

Please sign in to comment.