diff --git a/docs/source/conf.py b/docs/source/conf.py index bb96c456276e3cab36b019f3375153a773ae0455..086c9bdf6bacbd24a54e800c735cb67a8bba0819 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -14,6 +14,7 @@ # import os import sys +import pathlib sys.path.insert(0, os.path.abspath('../python')) @@ -23,8 +24,12 @@ project = u'Eclipse Aidge' copyright = u'2023, CEA LIST' author = u'CEA LIST' + +aidge_root = pathlib.Path().absolute() +version_file = open(aidge_root / "../../version.txt", "r").read().strip() + # The short X.Y version -version = u'0.1' # TODO : use version file (to setup later ...) +version = version_file # The full version, including alpha/beta/rc tags release = u'' # Name variable to use in the project