From: Nick Coghlan Date: Thu, 9 Feb 2017 16:00:31 +0000 (+0100) Subject: Issue #26355: Specify canonical URLs in docs pages X-Git-Tag: v2.7.14rc1~279 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e1e30dae9077aee8ac510981387ccb86b61e6ae;p=python Issue #26355: Specify canonical URLs in docs pages Add canonical header link on each page to corresponding major version of the documentation. Patch by Matthias Bussonnier. --- diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index 78b3b27e7c..c48754f0bc 100644 --- a/Doc/tools/templates/layout.html +++ b/Doc/tools/templates/layout.html @@ -16,6 +16,7 @@ {% block relbar2 %} {% if builder != 'qthelp' %} {{ relbar() }} {% endif %} {% endblock %} {% block extrahead %} + {% if not embedded %}{% endif %} {% if versionswitcher is defined and not embedded %}{% endif %} {{ super() }} diff --git a/Misc/NEWS b/Misc/NEWS index 69033a3a99..f0ba8c6213 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -85,6 +85,9 @@ C API Documentation ------------- +- Issue #26355: Add canonical header link on each page to corresponding major + version of the documentation. Patch by Matthias Bussonnier. + - Issue #12067: Rewrite Comparisons section in the Expressions chapter of the language reference. Some of the details of comparing mixed types were incorrect or ambiguous. Added default behaviour and consistency suggestions