# HG changeset patch # User Matthias Bussonnier # Date 1486492532 28800 # Tue Feb 07 10:35:32 2017 -0800 # Branch 2.6 # Node ID 34f19a926f8c112b445d1ae2ce1a5a3a75d9ca6a # Parent 0f520ed901a5a63e56717f79b4f77ebab3be370c Emit major version based canonical URLs for docs for Python 2.6 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 0f520ed901a5 -r 34f19a926f8c Doc/tools/sphinxext/layout.html --- a/Doc/tools/sphinxext/layout.html Wed Oct 15 18:07:54 2014 -0400 +++ b/Doc/tools/sphinxext/layout.html Tue Feb 07 10:35:32 2017 -0800 @@ -14,6 +14,7 @@ {% endblock %} {% block extrahead %} + {% if versionswitcher is defined and not embedded %}{% endif %} {{ super() }} {% endblock %}