Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0c92fc3

Browse files
[3.12] Docs: remove link elements in builders other than HTML (GH-133720) (#134007)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
1 parent483729f commit0c92fc3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎Doc/tools/templates/layout.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
{% endblock %}
2727

2828
{% block extrahead %}
29-
{% if builder == "html" and enable_analytics %}
29+
{% if builder == "html" %}
30+
{% if enable_analytics %}
3031
<scriptdeferdata-domain="docs.python.org"src="https://analytics.python.org/js/script.outbound-links.js"></script>
31-
{% endif %}
32-
<linkrel="canonical"href="https://docs.python.org/3/{{pagename}}.html">
33-
{% if builder != "htmlhelp" %}
32+
{% endif %}
33+
<linkrel="canonical"href="https://docs.python.org/3/{{pagename}}.html">
3434
{% if pagename == 'whatsnew/changelog' and not embedded %}
3535
<scripttype="text/javascript"src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
3636
{% endif %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp