# HG changeset patch # User Matthias Bussonnier # Date 1485475413 28800 # Thu Jan 26 16:03:33 2017 -0800 # Node ID 8c868b7e691a20432ab04aa20a7371e1eece410a # Parent 34fb29694c7640ad3718adcb7756f05b29070da6 Emit major version based canonical URLs for docs This add a "Cannonical" tag on the documentation which points to the stable url of Python version This should allow search engines to deduplicates results across multiple minor versions of Python and increase result ranking. Fix issue 26355 diff -r 34fb29694c76 -r 8c868b7e691a Doc/tools/templates/layout.html --- a/Doc/tools/templates/layout.html Wed Jan 25 23:35:46 2017 -0800 +++ b/Doc/tools/templates/layout.html Thu Jan 26 16:03:33 2017 -0800 @@ -38,6 +38,7 @@ {% endblock %} {% block extrahead %} + {% if builder != "htmlhelp" %} {% if not embedded %}{% endif %} {% if versionswitcher is defined and not embedded %}{% endif %}