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: I971b04156e8e7be18fdec6859e4b696f5dd3d7da
This commit is contained in:
James E. Blair 2022-03-21 10:27:57 -07:00
parent 023f6f0f6c
commit 88d532ea6e

View File

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