From 4e1e30dae9077aee8ac510981387ccb86b61e6ae Mon Sep 17 00:00:00 2001 From: Nick Coghlan Date: Thu, 9 Feb 2017 17:00:31 +0100 Subject: [PATCH] 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. --- Doc/tools/templates/layout.html | 1 + Misc/NEWS | 3 +++ 2 files changed, 4 insertions(+) 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 -- 2.50.1