File: remove-privacy-breach.patch

package info (click to toggle)
python-discord 2.6.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,476 kB
  • sloc: python: 49,910; javascript: 363; makefile: 154
file content (19 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Remove privacy breaching Google icons in favor of fork in Debian
 The docs make use of Google's Material icons, but calls to external sites are
 not acceptable in offline doc packages, and trigger Lintian's privacy tag.
 This patch replaces the link with that of a fork that's packaged in Debian.
Author: Ben Westover <kwestover.kw@gmail.com>
Forwarded: not-needed
Last-Update: 2022-06-08

--- a/docs/_templates/layout.html
+++ b/docs/_templates/layout.html
@@ -6,7 +6,7 @@
   <title>{{ title|striptags|e }}{{ titlesuffix }}</title>
   {%- block extrahead %} {% endblock %}
   <!-- end extra head -->
-  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
+  <link rel="stylesheet" href="{{ pathto('_static/materialicons.css', 1)|e }}" type="text/css" />
   {%- block css %}
   {%- for css in css_files %}
     {%- if css|attr("filename") %}