File: strip-shortbread-js

package info (click to toggle)
python-botocore 1.20.0%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 60,608 kB
  • sloc: python: 50,632; xml: 15,052; makefile: 131
file content (39 lines) | stat: -rw-r--r-- 1,811 bytes parent folder | 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
Description: strip shortbreadv1.js from source tarball
 shortbreadv1.js is distributed as minimized javascript with no
 copyright or license information and no links to the original
 source. So we remove it from the orig tarball and remove references
 to it from the rest of the package contents.
 .
 The javascript in quesetion is related to interactive questions about
 affermative cookie consent as required by GDPR and other
 regulations. Since we are not building HTML docs at all as part of
 this package, removing this file has no material impact on the
 packages we build.
Author: Noah Meyerhans <noahm@debian.org>
Forwarded: not-needed
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: python-botocore/docs/source/_templates/layout.html
===================================================================
--- python-botocore.orig/docs/source/_templates/layout.html
+++ python-botocore/docs/source/_templates/layout.html
@@ -10,16 +10,9 @@
 
 
 <div class="footer">
-    <script type="text/javascript" src="{{ pathto('_static/shortbreadv1.js',1 ) }}"></script>
-    <script type="text/javascript">
-            const shortbread = AWSCShortbread({
-                domain: ".amazonaws.com",
-});
-            shortbread.checkForCookieConsent();
-    </script>
-    <a href="http://aws.amazon.com/privacy">Privacy</a> | <a href="http://aws.amazon.com/terms">Site Terms</a> | <a
-        href="#" onclick="shortbread.customizeCookies();">Cookie preferences</a> |
-    &copy; Copyright {{ copyright }} <a href="http://sphinx.pocoo.org/">Sphinx</a>.
+    <a href="http://aws.amazon.com/privacy">Privacy</a>
+    | <a href="http://aws.amazon.com/terms">Site Terms</a>
+    | &copy; Copyright {{ copyright }} <a href="http://sphinx.pocoo.org/">Sphinx</a>.
 </div>
 
 {%- endblock %}