File: 0003-sphinx-local-mathjax.patch

package info (click to toggle)
python-periodictable 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,152 kB
  • sloc: python: 14,808; makefile: 103; sh: 92; javascript: 7
file content (22 lines) | stat: -rw-r--r-- 712 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
From: Stuart Prescott <stuart@debian.org>
Date: Thu, 26 Mar 2026 19:04:47 +1100
Subject: Switch to local mathjax for documentation

Forwarded: not-needed
---
 doc/sphinx/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py
index dad6c9e..d3016c8 100644
--- a/doc/sphinx/conf.py
+++ b/doc/sphinx/conf.py
@@ -44,7 +44,7 @@ extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest',
              ]
 
 # MathJax CDN is discontinued
-mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-MML-AM_CHTML"
+mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
 
 nitpick_ignore = [
     ('py:class', 'type'),