Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7a24a7

Browse files
committed
Merge issue #26355 fix from 3.6
2 parents 12c5838 + e185757 commit c7a24a7

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

Doc/tools/templates/layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
{% endblock %}
3939
{% block extrahead %}
4040
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/py.png', 1) }}" />
41+
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
4142
{% if builder != "htmlhelp" %}
4243
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
4344
{% if versionswitcher is defined and not embedded %}<script type="text/javascript" src="{{ pathto('_static/version_switch.js', 1) }}"></script>{% endif %}

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ Alastair Burt
220220
Tarn Weisner Burton
221221
Lee Busby
222222
Katherine Busch
223+
Matthias Bussonnier
223224
Ralph Butler
224225
Laurent De Buyst
225226
Zach Byrne

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,9 @@ C API
686686
Documentation
687687
-------------
688688

689+
- Issue #26355: Add canonical header link on each page to corresponding major
690+
version of the documentation. Patch by Matthias Bussonnier.
691+
689692
- Issue #29349: Fix Python 2 syntax in code for building the documentation.
690693

691694
- Issue #23722: The data model reference and the porting section in the

0 commit comments

Comments
 (0)