Add link rel=canonical tag to docs

Change-Id: I11f165f59c099f3ab4a2fe4fcd0cb421cfd43285
This commit is contained in:
James E. Blair 2022-01-20 07:50:22 -08:00
parent 486595438b
commit 7aea6bcc87
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
html_theme = "sphinx_rtd_theme"
# This adds a <link rel=canonical> tag
html_baseurl = f'https://zuul-ci.org{doc_root}/latest'
if version.is_release:
version = version.release_string