File: use-local-mathjax.patch

package info (click to toggle)
hipsparse 6.4.3-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,800 kB
  • sloc: cpp: 106,008; f90: 7,672; sh: 563; python: 533; makefile: 38; xml: 9
file content (26 lines) | stat: -rw-r--r-- 807 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
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sun, 28 May 2023 00:44:24 -0600
Subject: use local mathjax

The sphinx.ext.mathjax extension defaults to loading mathjax from a
CDN, which results in the lintian warning 'privacy-breach-generic'.
Use a local copy of mathjax to prevent that problem.

Forwarded: not-needed
---
 docs/conf.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index c07aca5..8b273e1 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -8,6 +8,8 @@ import re
 
 from rocm_docs import ROCmDocs
 
+# Debian: use local mathjax for local documentation
+mathjax_path = "/usr/share/javascript/mathjax/MathJax.js"
 
 with open('../CMakeLists.txt', encoding='utf-8') as f:
     match = re.search(r'.*\brocm_setup_version\(VERSION\s+\"?([0-9.]+)[^0-9.]+', f.read())