-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpatch-20210824.diff
83 lines (74 loc) · 3.33 KB
/
patch-20210824.diff
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
diff --git a/src/doc/common/themes/sage/layout.html b/src/doc/common/themes/sage/layout.html
index 82763e7465..3c480273bc 100644
--- a/src/doc/common/themes/sage/layout.html
+++ b/src/doc/common/themes/sage/layout.html
@@ -1,4 +1,5 @@
{% extends "basic/layout.html" %}
+{% set metatags = '<meta name="viewport" content="width=600, initial-scale=1">' %}
{% block rootrellink %}
{% if docstitle.startswith('Sage Documentation') %}
@@ -15,8 +16,6 @@
{% block extrahead %}
<link rel="icon" href="{{ pathto('_static/sageicon.png', 1) }}" type="image/x-icon" />
- <script src="{{ pathto('_static/thebe.js', 1) }}" type="text/javascript"></script>
- <script src="{{ pathto('_static/thebe-sage.js', 1) }}" type="text/javascript"></script>
{% endblock %}
{%- block footer %}
@@ -104,6 +103,15 @@ jq(document).ready(function () {
}
});
</script>
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-66100-14', 'auto');
+ ga('send', 'pageview');
+</script>
{%- endblock %}
<!-- This macro block for the sidebar is heavily borrowed from the basic -->
diff --git a/src/doc/common/themes/sage/static/thebe-sage.js b/src/doc/common/themes/sage/static/thebe-sage.js
index 567e348880..fa4699c5d3 100644
--- a/src/doc/common/themes/sage/static/thebe-sage.js
+++ b/src/doc/common/themes/sage/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/themes/sageref/layout.html b/src/doc/common/themes/sageref/layout.html
index d70e25c75c..0662aab4e4 100644
--- a/src/doc/common/themes/sageref/layout.html
+++ b/src/doc/common/themes/sageref/layout.html
@@ -1,4 +1,5 @@
{% extends "basic/layout.html" %}
+{% set metatags = '<meta name="viewport" content="width=600, initial-scale=1">' %}
{% block rootrellink %}
{% if docstitle.startswith('Sage Documentation') %}
@@ -16,8 +17,6 @@
{% block extrahead %}
<link rel="icon" href="{{ pathto('_static/sageicon.png', 1) }}" type="image/x-icon" />
- <script src="{{ pathto('_static/thebe.js', 1) }}" type="text/javascript"></script>
- <script src="{{ pathto('_static/thebe-sage.js', 1) }}" type="text/javascript"></script>
{% endblock %}
{%- block footer %}
@@ -105,6 +104,15 @@ jq(document).ready(function () {
}
});
</script>
+<script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-66100-14', 'auto');
+ ga('send', 'pageview');
+</script>
{%- endblock %}
<!-- This macro block for the sidebar is heavily borrowed from the basic -->