Skip to content

Commit 6a2f981

Browse files
[3.11] Docs: Only include Plausible for html, not for epub etc (GH-107637) (#107643)
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent 4f65f03 commit 6a2f981

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/tools/templates/layout.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@
2626
{% endblock %}
2727

2828
{% block extrahead %}
29-
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
29+
{% if builder == "html" %}
30+
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
31+
{% endif %}
3032
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
3133
{% if builder != "htmlhelp" %}
3234
{% if pagename == 'whatsnew/changelog' and not embedded %}

0 commit comments

Comments
 (0)