From ae818da5d8c80359d0bb37a4886d26ee9d23f60f Mon Sep 17 00:00:00 2001 From: Kristal Dale Date: Mon, 5 Aug 2019 14:28:00 -0700 Subject: [PATCH] Added canonical tag configuration to config file. Added GA tracking snippet (cross-domain) to layout template. Signed-off-by: Kristal Dale --- .../_themes/otc_tcs_sphinx_theme/layout.html | 18 ++++++++++++++++++ source/conf.py | 1 + 2 files changed, 19 insertions(+) diff --git a/source/_themes/otc_tcs_sphinx_theme/layout.html b/source/_themes/otc_tcs_sphinx_theme/layout.html index 3edaf20a..e4782f90 100644 --- a/source/_themes/otc_tcs_sphinx_theme/layout.html +++ b/source/_themes/otc_tcs_sphinx_theme/layout.html @@ -1,5 +1,23 @@ {% extends "sphinx_rtd_theme/layout.html" %} +{% block htmltitle %} + + + +{{ super() }} + +{% endblock %} + {% block extrahead %} diff --git a/source/conf.py b/source/conf.py index 86fe2a1a..33fcd32e 100644 --- a/source/conf.py +++ b/source/conf.py @@ -127,6 +127,7 @@ version = current_version = "latest" # further. For a list of options available for each theme, see the # documentation. html_theme_options = { + 'canonical_url': 'docs.01.org/clearlinux/', 'style_nav_header_background': '#007ab2', 'navigation_depth': 4, 'display_version': False,