Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@
# further. For a list of options available for each theme, see the
# documentation.
html_theme_options = {
"google_analytics": True,
"legacy_google_analytics": True,
"analytics": True,
"mathjax_path": mathjax_path,
"link_to_live_contributing_page": not parsed_version.is_devrelease,
}
Expand Down
7 changes: 6 additions & 1 deletion doc/themes/scikit-learn-modern/javascript.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% if theme_google_analytics|tobool %}
{% if theme_legacy_google_analytics|tobool %}
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-22606712-2', 'auto');
Expand All @@ -8,6 +8,11 @@
<script async src='https://www.google-analytics.com/analytics.js'></script>
{% endif %}

{% if theme_analytics|tobool %}
<script defer data-domain="scikit-learn.org" src="https://views.scientific-python.org/js/script.js">
</script>
{% endif %}

<script>
$(document).ready(function() {
/* Add a [>>>] button on the top-right corner of code samples to hide
Expand Down
3 changes: 2 additions & 1 deletion doc/themes/scikit-learn-modern/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pygments_style = default
stylesheet = css/theme.css

[options]
google_analytics = true
legacy_google_analytics = true
analytics = true
link_to_live_contributing_page = false
mathjax_path =