From e7f70eb064f4b57395f710b2afc2f21f7cff8222 Mon Sep 17 00:00:00 2001 From: George McCabe Date: Tue, 27 Apr 2021 13:07:20 -0600 Subject: [PATCH] display beta and rc versions in docs instead of 'develop' which is shown for -dev (non-release) versions --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 093d7f51cc..69082e7a08 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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]}"