Skip to content

Commit

Permalink
Display dev version numbers on ReadTheDocs latest (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
GenevieveBuckley authored May 23, 2024
1 parent 6376daf commit 77a29ba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
release = dask_image._version.__version__
# The short X.Y.Z version.
version = '.'.join(release.split('.')[:3])
if "dev" in release:
display_version = "(development version)"
else:
display_version = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -130,7 +134,7 @@

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
html_title = f"{project} {version} documentation"
html_title = f"{project} {display_version} documentation"

# A shorter title for the navigation bar. Default is the same as
# html_title.
Expand Down

0 comments on commit 77a29ba

Please sign in to comment.