diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-08-04 18:33:34 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 18:33:34 (GMT) |
commit | 904b5319b3cc72063f4bfcd7beb3a1ef0fc641be (patch) | |
tree | 76d98df3c4394792f7e0717c6626bfc59b3ba28f /Doc/tools | |
parent | 321f0f79325adfe7656645060c2008d5779e1a7f (diff) | |
download | cpython-904b5319b3cc72063f4bfcd7beb3a1ef0fc641be.zip cpython-904b5319b3cc72063f4bfcd7beb3a1ef0fc641be.tar.gz cpython-904b5319b3cc72063f4bfcd7beb3a1ef0fc641be.tar.bz2 |
Docs: Only include Plausible for html, not for epub etc (#107637)
Only include Plausible for html, not for epub etc
Diffstat (limited to 'Doc/tools')
-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 %} |