mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
[3.14] Docs: remove link elements in builders other than HTML (GH-133720) (#134005)
Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
This commit is contained in:
parent
d6cb8fa86e
commit
ea15c55143
1 changed files with 4 additions and 4 deletions
|
@ -26,11 +26,11 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block extrahead %}
|
{% 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>
|
<script defer data-domain="docs.python.org" src="https://analytics.python.org/js/script.outbound-links.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
|
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html">
|
||||||
{% if builder != "htmlhelp" %}
|
|
||||||
{% if pagename == 'whatsnew/changelog' and not embedded %}
|
{% if pagename == 'whatsnew/changelog' and not embedded %}
|
||||||
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
|
<script type="text/javascript" src="{{ pathto('_static/changelog_search.js', 1) }}"></script>{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue