[stable-2.7] -Change: set the 'canonical_url' theme option to enable rendering of canonical urls, promoting the 'latest' docs to search engines. (#49190) (#49214)

(cherry picked from commit 59e7a9442e)

Co-authored-by: Xaroth <xaroth+github@xaroth.nl>
pull/49439/head
Xaroth 6 years ago committed by Alicia Cozine
parent 9a5a4fa59a
commit 14fc00f28b

@ -127,6 +127,10 @@ html_theme_path = ['../_themes']
html_theme = 'sphinx_rtd_theme' html_theme = 'sphinx_rtd_theme'
html_short_title = 'Ansible Documentation' html_short_title = 'Ansible Documentation'
html_theme_options = {
'canonical_url': "https://docs.ansible.com/ansible/latest/",
}
# The style sheet to use for HTML and HTML Help pages. A file of that name # The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths # must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path. # given in html_static_path.

Loading…
Cancel
Save