branch: elpa/flycheck
commit 03a6ae1d57f9b2b3e76cedc381148651a086edf6
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>
Remove obsolete Google Analytics blocker template
ReadTheDocs dropped GA injection years ago and Furo doesn't use
this template override. The templates_path config is no longer needed.
---
doc/_templates/layout.html | 20 --------------------
doc/conf.py | 2 +-
2 files changed, 1 insertion(+), 21 deletions(-)
diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html
deleted file mode 100644
index c267e131a7..0000000000
--- a/doc/_templates/layout.html
+++ /dev/null
@@ -1,20 +0,0 @@
-{% extends "!layout.html" %}
-
-{% block extrahead %}
-<script type="text/javascript">
- /* Prevent injected analytics from running with a no-op, but
- let other scripts be injected (we need that for the readthedocs
- widget at the bottom-right of the screen) */
- (function(){
- var props = Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype,
'src');
- var _set = props.set;
- Object.defineProperty(HTMLScriptElement.prototype, 'src', {
- configurable: false, /* Prevent further redefinition of this property */
- set: function(url) {
- if (url.indexOf('google-analytics.com') > -1) return;
- else _set.apply(this, arguments);
- }
- });
- }())
-</script>
-{% endblock %}
diff --git a/doc/conf.py b/doc/conf.py
index 86cd713172..488e8293a9 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -96,7 +96,7 @@ rst_prolog = """\
exclude_patterns = ['_build']
default_role = 'any'
primary_domain = 'el'
-templates_path = ['_templates'] # layout.html blocks Google Analytics
+templates_path = []
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'