Skip to content

Commit

Permalink
fix sphinx configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gertjanvanzwieten committed Jul 28, 2023
1 parent e198132 commit 2621367
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

import sys
import os
import re

try:
from sphinx import version_info as _sphinx_version_info
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 2621367

Please sign in to comment.