Skip to content

Commit 904b531

Browse files
authored
Docs: Only include Plausible for html, not for epub etc (#107637)
Only include Plausible for html, not for epub etc
1 parent 321f0f7 commit 904b531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/tools/templates/layout.html

+3-1
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)