mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
[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:
parent
5d186350b6
commit
ab8aafe551
1 changed files with 4 additions and 4 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue