File: Use-local-version-of-MathJax.js.patch

package info (click to toggle)
fastd 22-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,872 kB
  • sloc: asm: 15,114; ansic: 11,284; yacc: 599; sh: 472; makefile: 160; python: 35; perl: 11
file content (26 lines) | stat: -rw-r--r-- 744 bytes parent folder | download | duplicates (2)
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: Sven Eckelmann <sven@narfation.org>
Date: Sat, 6 Jun 2020 22:20:14 +0200
Subject: Use local version of MathJax.js

Fetching resources from an external website is a potential privacy breach.
The external MathJax library should be replaced with the one from the
libjs-mathjax.

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

diff --git a/doc/source/conf.py b/doc/source/conf.py
index 8c27b1f..9b5390b 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -33,6 +33,8 @@ extensions = [
     'sphinx.ext.mathjax',
 ]
 
+mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']