From f25bf8787b49190f8ed7e61c35202b3ced304343 Mon Sep 17 00:00:00 2001
From: cmoineau <cyril.moineau@cea.fr>
Date: Thu, 20 Jul 2023 11:50:59 +0000
Subject: [PATCH] [Docs] Update docs version to use version.txt.

---
 docs/source/conf.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/docs/source/conf.py b/docs/source/conf.py
index bb96c456..086c9bdf 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
-- 
GitLab