File: Use-local-mathjax.patch

package info (click to toggle)
rocprim 6.4.3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 11,428 kB
  • sloc: cpp: 153,383; python: 1,397; sh: 404; xml: 217; makefile: 119
file content (27 lines) | stat: -rw-r--r-- 790 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
From: Cordell Bloor <cgmb@slerp.xyz>
Date: Sat, 28 Jun 2025 00:46:42 +0200
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 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/docs/conf.py b/docs/conf.py
index 389abb8..f17c4fb 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -26,6 +26,9 @@
 
 import re
 
+# 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'.*\bset\(VERSION_STRING\s+\"?([0-9.]+)[^0-9.]+', f.read())
     if not match: