Package: python-mkdocs / 1.0.4+dfsg-1

0002-Remove-privacy-breaches.patch Patch series | download
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
From: Dmitry Shachnev <mitya57@debian.org>
Date: Sat, 19 May 2018 23:50:24 +0300
Subject: Remove privacy breaches

- Disable Google Analytics in mkdocs-doc.
- Disable scripts from third-party websites.
---
 mkdocs.yml                          | 1 -
 mkdocs/themes/mkdocs/base.html      | 5 -----
 mkdocs/themes/readthedocs/base.html | 2 --
 3 files changed, 8 deletions(-)

diff --git a/mkdocs.yml b/mkdocs.yml
index f120128..8479605 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -40,7 +40,6 @@ markdown_extensions:
         repo: mkdocs
 
 copyright: Copyright &copy; 2014 <a href="https://twitter.com/_tomchristie">Tom Christie</a>, Maintained by the <a href="/about/release-notes/#maintenance-team">MkDocs Team</a>.
-google_analytics: ['UA-27795084-5', 'mkdocs.org']
 
 plugins:
     - search
diff --git a/mkdocs/themes/mkdocs/base.html b/mkdocs/themes/mkdocs/base.html
index b47fa11..70d8b48 100644
--- a/mkdocs/themes/mkdocs/base.html
+++ b/mkdocs/themes/mkdocs/base.html
@@ -29,11 +29,6 @@
       {%- endblock %}
 
       {%- block libs %}
-        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
-        <!--[if lt IE 9]>
-            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
-            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
-        <![endif]-->
 
         <script src="{{ 'js/jquery-1.10.2.min.js'|url }}" defer></script>
         <script src="{{ 'js/bootstrap-3.0.3.min.js'|url }}" defer></script>
diff --git a/mkdocs/themes/readthedocs/base.html b/mkdocs/themes/readthedocs/base.html
index b9d2947..2b0e9b6 100644
--- a/mkdocs/themes/readthedocs/base.html
+++ b/mkdocs/themes/readthedocs/base.html
@@ -17,8 +17,6 @@
   {%- endblock %}
 
   {%- block styles %}
-  <link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
-
   <link rel="stylesheet" href="{{ 'css/theme.css'|url }}" type="text/css" />
   <link rel="stylesheet" href="{{ 'css/theme_extra.css'|url }}" type="text/css" />
   {%- if config.theme.highlightjs %}