Use the packaged version of MathJax.
authorJordi Mallach <jordi@debian.org>
Wed, 20 Dec 2023 17:34:35 +0000 (18:34 +0100)
committerJordi Mallach <jordi@debian.org>
Wed, 20 Dec 2023 17:34:35 +0000 (18:34 +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 d0227f52c067e9a965fef5f5d067ad1f6afe72cd..7297fd6168d9608723678bcc935a83e8078f5b87 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']