Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea15c55

Browse files
miss-islingtonm-aciek
andauthoredMay 14, 2025··
[3.14] Docs: remove link elements in builders other than HTML (GH-133720) (#134005)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
1 parent d6cb8fa commit ea15c55

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
<script defer data-domain="docs.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
31-
{% endif %}
32-
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
33-
{% if builder != "htmlhelp" %}
32+
{% endif %}
33+
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
3434
{% if pagename == 'whatsnew/changelog' and not embedded %}
3535
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
3636
{% endif %}

0 commit comments

Comments
 (0)
Please sign in to comment.

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant