Skip to content

Commit

Permalink
fix version in docs (#2522)
Browse files Browse the repository at this point in the history
fix_version_docs
  • Loading branch information
JKL98ISR committed May 11, 2023
1 parent 03960dc commit 3ff8209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
version = 'dev'
else:
# Taking the major and minor version from the branch name
version_match = re.search(r'\d+(?:\.\d+)', os.environ.get("GITHUB_REF_NAME"))
version_match: re.Match = re.match(r'\d+(?:\.\d+)', os.environ.get("GITHUB_REF_NAME"))
if version_match is not None:
version = version_match.string
version = version_match.group(0)

version = version or VERSION
language = os.environ.get("READTHEDOCS_LANGUAGE")
Expand Down

0 comments on commit 3ff8209

Please sign in to comment.