File: 0003-sphinx-local-mathjax.patch

package info (click to toggle)
pyx3 0.17-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,328 kB
  • sloc: python: 27,656; makefile: 225; ansic: 130; sh: 17
file content (22 lines) | stat: -rw-r--r-- 734 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Stuart Prescott <stuart@debian.org>
Date: Fri, 7 Nov 2025 13:48:32 +1100
Subject: Switch to local mathjax for documentation

---
 manual/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/manual/conf.py b/manual/conf.py
index 5d1da63..ad8b4c3 100644
--- a/manual/conf.py
+++ b/manual/conf.py
@@ -230,7 +230,8 @@ man_pages = [
 
 # -- Other options  ------------------------------------------------------------
 
-mathjax_path = 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=default'
+# Use the packaged copy of MathJax
+mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
 todo_include_todos = True
 autoclass_content = 'both'
 autodoc_member_order = 'bysource'