-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
9.7.patch
43 lines (41 loc) · 1.5 KB
/
9.7.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
diff --git a/src/doc/common/static/thebe-sage.js b/src/doc/common/static/thebe-sage.js
index 567e3488802..fa4699c5d33 100644
--- a/src/doc/common/static/thebe-sage.js
+++ b/src/doc/common/static/thebe-sage.js
@@ -127,7 +127,7 @@ $(function() {
cellNode.innerHTML = html;
}
- if (window.location.protocol.startsWith('http')) {
+ if (false && window.location.protocol.startsWith('http')) {
var cellSelector = "pre:contains('sage: ')";
if ($(cellSelector).length > 0) {
$('<button id="thebe-activate">Activate</button>')
diff --git a/src/doc/common/templates-furo/base.html b/src/doc/common/templates-furo/base.html
new file mode 100644
index 00000000000..dcc5d5441cb
--- /dev/null
+++ b/src/doc/common/templates-furo/base.html
@@ -0,0 +1,12 @@
+{% extends "!base.html" %}
+
+{%- block extrahead -%}
+{{ super() }}
+<script async src="https://www.googletagmanager.com/gtag/js?id=G-ZGD13B5572"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-ZGD13B5572');
+</script>
+{%- endblock extrahead -%}
diff --git a/src/doc/en/website/templates/index_furo.html b/src/doc/en/website/templates/index_furo.html
index 4ffc4003683..9ed5f318594 100644
--- a/src/doc/en/website/templates/index_furo.html
+++ b/src/doc/en/website/templates/index_furo.html
@@ -5,6 +5,7 @@
{% endblock %}
{%- block extrahead %}
+{{ super() }}
<style type="text/css">
img.icon {
border: none;