File: 0003-Use-system-Mathjax.patch

package info (click to toggle)
dials 3.25.0%2Bdfsg3-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 20,100 kB
  • sloc: python: 134,740; cpp: 34,526; makefile: 160; sh: 142
file content (27 lines) | stat: -rw-r--r-- 802 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: Roland Mas <lolando@debian.org>
Date: Tue, 13 Dec 2022 14:53:28 +0100
Subject: Use system Mathjax

---
 doc/sphinx/conf.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py
index 8c1f65a..d252564 100644
--- a/doc/sphinx/conf.py
+++ b/doc/sphinx/conf.py
@@ -46,9 +46,11 @@
     "sphinx.ext.napoleon",
 ]
 
-# Add CDN path for mathjax script, converting Latex to readable text on the fly.
-# (The Sphinx builtin path is deprecated.)
-mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+mathjax_path = 'mathjax/MathJax.js'
+mathjax2_config = {
+    'extensions': ['tex2jax.js'],
+    'jax': ['input/TeX', 'output/HTML-CSS'],
+}
 
 sys.path.insert(0, os.path.abspath("."))