-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
9.6.patch
39 lines (36 loc) · 1.82 KB
/
9.6.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
diff --git a/src/doc/common/themes/sage-classic/layout.html b/src/doc/common/themes/sage-classic/layout.html
index ab9a05261aa..4242bf48170 100644
--- a/src/doc/common/themes/sage-classic/layout.html
+++ b/src/doc/common/themes/sage-classic/layout.html
@@ -1,4 +1,5 @@
{% extends "classic/layout.html" %}
+{% set metatags = '<meta name="viewport" content="width=600, initial-scale=1">' %}
{% block rootrellink %}
<li class="nav-item nav-item-0">
@@ -110,6 +111,15 @@ jq(document).ready(function () {
/* detex the document title by removing "\(", "\)", "\", "$" */
document.title = document.title.replace(/\\\(/g, '').replace(/\\\)/g, '').replace(/\\/g, '').replace(/\$/g, '');
</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-classic/static/thebe-sage.js b/src/doc/common/themes/sage-classic/static/thebe-sage.js
index 567e3488802..fa4699c5d33 100644
--- a/src/doc/common/themes/sage-classic/static/thebe-sage.js
+++ b/src/doc/common/themes/sage-classic/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>')