From aee4ef9b04c761f6880d8cb992705a4304e39e98 Mon Sep 17 00:00:00 2001 From: Michele Alberti <michele.alberti@cea.fr> Date: Thu, 18 Jul 2024 10:27:33 +0200 Subject: [PATCH] [doc] Use VERSION for setting up release and version variables. --- doc/conf.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index acb529a..6365e24 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -28,11 +28,11 @@ author = 'The CAISAR Development Team' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '2.0' # The full version, including alpha/beta/rc tags. -release = '2.0.0' - +with open('../VERSION') as f: + release = f.readline().rstrip() +# The short X.Y version. +version = '.'.join(release.split('.')[:2]) # -- General configuration --------------------------------------------------- -- GitLab