diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-04 20:20:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 20:20:46 (GMT) |
commit | 0e7a4f733685e7a7ccf28d850bae1b2222977362 (patch) | |
tree | 7dd792ea1de503b9b4f690da9843a97365289f34 | |
parent | 28a9849d7c2f2ae3c283cf61b904418d8b01ec01 (diff) | |
download | cpython-0e7a4f733685e7a7ccf28d850bae1b2222977362.zip cpython-0e7a4f733685e7a7ccf28d850bae1b2222977362.tar.gz cpython-0e7a4f733685e7a7ccf28d850bae1b2222977362.tar.bz2 |
[3.12] Docs: Only include Plausible for html, not for epub etc (GH-107637) (#107642)
Docs: Only include Plausible for html, not for epub etc (GH-107637)
Only include Plausible for html, not for epub etc
(cherry picked from commit 904b5319b3cc72063f4bfcd7beb3a1ef0fc641be)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
-rw-r--r-- | Doc/tools/templates/layout.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tools/templates/layout.html b/Doc/tools/templates/layout.html index 9832feb..8010315 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 %} |