Skip to content

Commit

Permalink
display beta and rc versions in docs instead of 'develop' which is sh…
Browse files Browse the repository at this point in the history
…own for -dev (non-release) versions
  • Loading branch information
georgemccabe committed Apr 27, 2021
1 parent a773a70 commit e7f70eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
# the stable version, displayed on front page of PDF extract X.Y version
# from release by splitting the string into a list
# using - as the delimeter, then getting the 1st item of the list
# if version is beta, rc, and/or dev then set version to develop for
# if version ends with -dev then set version to develop for
# the documentation built for develop (not release)
if len(release.split('-')) > 1:
if len(release.split('-')) > 2:
version = 'develop'
else:
version = f"{release.split('-')[0]}"
Expand Down

0 comments on commit e7f70eb

Please sign in to comment.