Correct tagged version docs build

A variable reassignment in conf.py caused errors when we try to build
release versions of docs.  Correct that by swapping the order of use
and assignment.

Change-Id: I19c575974bd57e27ae62f32271949de20dc67067
This commit is contained in:
James E. Blair
2022-03-21 10:22:13 -07:00
parent 9e2ef595df
commit 81525f63be

View File

@ -75,8 +75,8 @@ html_theme = "sphinx_rtd_theme"
html_baseurl = f'https://zuul-ci.org{doc_root}/latest'
if version.is_release:
version = version.release_string
current_version = version.release_string
version = version.release_string
versions = [('latest', f'{doc_root}/latest/')]
else:
# Uncomment this if we want to use the in-development version