File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed
themes/scikit-learn-modern Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 171
171
# further. For a list of options available for each theme, see the
172
172
# documentation.
173
173
html_theme_options = {
174
- "google_analytics" : True ,
174
+ "legacy_google_analytics" : True ,
175
+ "analytics" : True ,
175
176
"mathjax_path" : mathjax_path ,
176
177
"link_to_live_contributing_page" : not parsed_version .is_devrelease ,
177
178
}
Original file line number Diff line number Diff line change 1
- {% if theme_google_analytics |tobool %}
1
+ {% if theme_legacy_google_analytics |tobool %}
2
2
< script >
3
3
window . ga = window . ga || function ( ) { ( ga . q = ga . q || [ ] ) . push ( arguments ) } ; ga . l = + new Date ;
4
4
ga ( 'create' , 'UA-22606712-2' , 'auto' ) ;
8
8
< script async src ='https://www.google-analytics.com/analytics.js '> </ script >
9
9
{% endif %}
10
10
11
+ {% if theme_analytics|tobool %}
12
+ < script defer data-domain ="scikit-learn.org " src ="https://views.scientific-python.org/js/script.js ">
13
+ </ script >
14
+ {% endif %}
15
+
11
16
< script >
12
17
$ ( document ) . ready ( function ( ) {
13
18
/* Add a [>>>] button on the top-right corner of code samples to hide
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ pygments_style = default
4
4
stylesheet = css/theme.css
5
5
6
6
[options]
7
- google_analytics = true
7
+ legacy_google_analytics = true
8
+ analytics = true
8
9
link_to_live_contributing_page = false
9
10
mathjax_path =
You can’t perform that action at this time.
0 commit comments