diff --git a/docs/conf.py b/docs/conf.py index a16cd882..a65675ef 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 = release +else: + display_version = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -130,7 +134,7 @@ # The name for this set of Sphinx documents. If None, it defaults to # " v 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.