[Python-checkins] Docs: Only include Plausible for html, not for epub etc (#107637)
hugovk
webhook-mailer at python.org
Fri Aug 4 14:33:39 EDT 2023
https://github.com/python/cpython/commit/904b5319b3cc72063f4bfcd7beb3a1ef0fc641be
commit: 904b5319b3cc72063f4bfcd7beb3a1ef0fc641be
branch: main
author: Hugo van Kemenade <hugovk at users.noreply.github.com>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-08-04T21:33:34+03:00
summary:
Docs: Only include Plausible for html, not for epub etc (#107637)
Only include Plausible for html, not for epub etc
files:
M Doc/tools/templates/layout.html
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html
index 9832feba14167..80103158ea01e 100644
--- a/Doc/tools/templates/layout.html
+++ b/Doc/tools/templates/layout.html
@@ -26,7 +26,9 @@
{% endblock %}
{% block extrahead %}
- <script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
+ {% if builder == "html" %}
+ <script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
+ {% endif %}
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
{% if builder != "htmlhelp" %}
{% if pagename == 'whatsnew/changelog' and not embedded %}
More information about the Python-checkins
mailing list