File: 0002-Fix-privacy-issue.patch

package info (click to toggle)
rocm-docs-core 1.23.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,632 kB
  • sloc: python: 1,960; sh: 160; javascript: 152; cpp: 29; makefile: 27
file content (34 lines) | stat: -rw-r--r-- 1,286 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
From: Christian Bayle <bayle@debian.org>
Date: Sat, 17 May 2025 00:27:26 +0200
Subject: Fix privacy issue

Forwarded: not-needed
---
 src/rocm_docs/theme.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/rocm_docs/theme.py b/src/rocm_docs/theme.py
index 5db145a..2f68fad 100644
--- a/src/rocm_docs/theme.py
+++ b/src/rocm_docs/theme.py
@@ -168,7 +168,7 @@ def _update_theme_options(app: Sphinx) -> None:
 
     default_config_opts = {
         "html_show_sphinx": False,
-        "html_favicon": "https://www.amd.com/content/dam/code/images/favicon/favicon.ico",
+        "html_favicon": "favicon.ico",
         "notfound_context": {"title": "404 - Page Not Found"},
         "notfound_template": "404.html",
         "html_context": {
@@ -183,11 +183,6 @@ def _update_theme_options(app: Sphinx) -> None:
 
 def setup(app: Sphinx) -> dict[str, Any]:
     """Set up the module as a Sphinx extension."""
-    app.add_js_file(
-        "https://download.amd.com/js/analytics/analyticsinit.js",
-        priority=999_999,
-        loading_method="async",
-    )
     app.add_js_file("code_word_breaks.js", loading_method="async")
     app.add_js_file("renameVersionLinks.js", loading_method="async")
     app.add_js_file("rdcMisc.js", loading_method="async")