FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] Docs: Only include Plausible for html, not for epub etc (GH-10… · python/cpython@0e7a4f7 · GitHub

/ cpython Public

Commit 0e7a4f7

Browse files
[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 904b531) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
1 parent 28a9849 commit 0e7a4f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎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)

Back | FazBrowse Home | New Git URL