summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorXaroth <xaroth+github@xaroth.nl>2018-11-30 22:40:28 +0100
committerAlicia Cozine <879121+acozine@users.noreply.github.com>2018-11-30 15:40:28 -0600
commit14fc00f28bb9370d6c50a3ad466332edcd9ba2a9 (patch)
treeda60569f1af7019bb9766a1e4b896d584a95f972 /docs
parent9a5a4fa59ad607566413ec92efb7908916966611 (diff)
downloadansible-14fc00f28bb9370d6c50a3ad466332edcd9ba2a9.tar.gz
[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 59e7a9442e0fbb9c827f6c4d58ea7aebf5b04b02) Co-authored-by: Xaroth <xaroth+github@xaroth.nl>
Diffstat (limited to 'docs')
-rw-r--r--docs/docsite/rst/conf.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/docsite/rst/conf.py b/docs/docsite/rst/conf.py
index cf100dea5a..86ab343f83 100644
--- a/docs/docsite/rst/conf.py
+++ b/docs/docsite/rst/conf.py
@@ -127,6 +127,10 @@ html_theme_path = ['../_themes']
html_theme = 'sphinx_rtd_theme'
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
# must exist either in Sphinx' static/ path, or in one of the custom paths
# given in html_static_path.