Skip to content

Commit

Permalink
Docs: Only include Plausible for html, not for epub etc (#107637)
Browse files Browse the repository at this point in the history
Only include Plausible for html, not for epub etc
  • Loading branch information
hugovk committed Aug 4, 2023
1 parent 321f0f7 commit 904b531
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Doc/tools/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 904b531

Please sign in to comment.