Use the packaged version of MathJax.
authorJordi Mallach <jordi@debian.org>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
committerCesare Falco <c.falco@ubuntu.com>
Fri, 31 Jan 2025 11:40:38 +0000 (12:40 +0100)
Forwarded: no

Avoid a privacy breach by using the packaged version of
libjs-mathjax in the generated sphinx docs.

Gbp-Pq: Name sphinx_mathjax_location.patch

docs/source/conf.py

index b56547d84bb544c913712686faa5fde370ea4322..377c6fae9af814f929535c5dd49f0f7eb760619a 100644 (file)
@@ -40,7 +40,7 @@ edit_on_github_project = 'mamedev/mame'
 edit_on_github_branch = 'master/docs/source'
 
 # Math
-mathjax_path = "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
+mathjax_path = "file:///usr/share/javascript/mathjax/config/TeX-AMS-MML_HTMLorMML.js"
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']