From 77a29ba78db608c5fe21f9f51745ec4bd01d5681 Mon Sep 17 00:00:00 2001 From: Genevieve Buckley <30920819+GenevieveBuckley@users.noreply.github.com> Date: Thu, 23 May 2024 17:54:59 +1000 Subject: [PATCH] Display dev version numbers on ReadTheDocs latest (#380) --- docs/conf.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index a16cd882..52af4160 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 = "(development version)" +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.