Skip to content

Commit 77a29ba

Browse files
Display dev version numbers on ReadTheDocs latest (#380)
1 parent 6376daf commit 77a29ba

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@
7171
release = dask_image._version.__version__
7272
# The short X.Y.Z version.
7373
version = '.'.join(release.split('.')[:3])
74+
if "dev" in release:
75+
display_version = "(development version)"
76+
else:
77+
display_version = version
7478

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

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

135139
# A shorter title for the navigation bar. Default is the same as
136140
# html_title.

0 commit comments

Comments
 (0)