Use the packaged version of MathJax.
authorJordi Mallach <jordi@debian.org>
Mon, 3 Jun 2024 11:21:21 +0000 (13:21 +0200)
committerCesare Falco <c.falco@ubuntu.com>
Mon, 3 Jun 2024 11:21:21 +0000 (13:21 +0200)
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 0b78ef7a53e707c49b8887dea997ff4aa28813f9..5eb7b95e487bea31f40c4a0d80316f0c01954293 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']