(original) (raw)
changeset: 106476:b07d454e45a2 branch: 2.7 parent: 106459:3fd198b80f29 user: Nick Coghlan ncoghlan@gmail.com date: Thu Feb 09 17:00:31 2017 +0100 files: Doc/tools/templates/layout.html Misc/NEWS description: 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 -r 3fd198b80f29 -r b07d454e45a2 Doc/tools/templates/layout.html --- a/Doc/tools/templates/layout.html Mon Feb 06 20:30:10 2017 -0800 +++ b/Doc/tools/templates/layout.html Thu Feb 09 17:00:31 2017 +0100 @@ -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 -r 3fd198b80f29 -r b07d454e45a2 Misc/NEWS --- a/Misc/NEWS Mon Feb 06 20:30:10 2017 -0800 +++ b/Misc/NEWS Thu Feb 09 17:00:31 2017 +0100 @@ -85,6 +85,9 @@ 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 /ncoghlan@gmail.com