diff --git a/doc/conf.py b/doc/conf.py index acb529afc31443aa272684d7af0704dd9cf37b39..6365e24cede66a5bde6b73d8d257eb4c4bbfaa69 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 ---------------------------------------------------