8000 Docs: remove link elements in builders other than HTML (GH-133720) · miss-islington/cpython@cfd0ee5 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit cfd0ee5

Browse files
m-aciekmiss-islington
authored andcommitted
Docs: remove link elements in builders other than HTML (pythonGH-133720)
Fixes epub build (cherry picked from commit 0afbd4e) Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
1 parent d6cb8fa commit cfd0ee5

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)
0