[3.13] Docs: remove link elements in builders other than HTML (GH-133720) (#134006)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
This commit is contained in:
Miss Islington (bot) 2025-05-14 17:22:27 +02:00 committed by GitHub
parent 5d186350b6
commit ab8aafe551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,11 +26,11 @@
{% endblock %}
{% block extrahead %}
{% if builder == "html" and enable_analytics %}
{% if builder == "html" %}
{% if enable_analytics %}
<script defer data-domain="docs.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
{% endif %}
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
{% if builder != "htmlhelp" %}
{% endif %}
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
{% if pagename == 'whatsnew/changelog' and not embedded %}
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
{% endif %}