From 2621367d43a5ac468e68e645181d2b1afafc0ec2 Mon Sep 17 00:00:00 2001 From: Gertjan van Zwieten Date: Fri, 28 Jul 2023 15:32:30 +0200 Subject: [PATCH] fix sphinx configuration This patch removes the regular expression used in Sphinx' conf.py, which is incompatible with the new version scheme and does not serve an important purpose. --- docs/conf.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index f59e059d9..0f86c07cf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,6 @@ import sys import os -import re try: from sphinx import version_info as _sphinx_version_info @@ -64,13 +63,11 @@ # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the -# built documents. -# -from nutils import version as nutils_version -# The short X.Y version. -version = re.search('^[0-9]+\\.[0-9]+', nutils_version).group(0) -# The full version, including alpha/beta/rc tags. -release = nutils_version +# built documents: 'version' refers to the short X.Y version, whereas 'release' +# refers to the full version, including alpha/beta/rc tags. For Nutils we set +# both to the same value. +from nutils import version +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.