Use packaged copy of MathJax from libjs-mathjax
authorAnthony Fok <foka@debian.org>
Fri, 6 Sep 2024 01:07:30 +0000 (21:07 -0400)
committerBoyuan Yang <byang@debian.org>
Fri, 6 Sep 2024 01:07:30 +0000 (21:07 -0400)
Origin: vendor
Forwarded: not-needed
Last-Update: 2020-11-24

FontForge documentation uses sphinx.ext.mathjax which insert script links
to MathJax served on remote CDNs.

This patch, together with debian/fontforge-doc.links, replaces remote
scripts with MathJax from the libjs-mathjax package.
See https://bugs.debian.org/739300 for discussion.

Fixes Lintian privacy-breach-generic warnings.
Last-Update: 2020-11-24
Gbp-Pq: Name 0003-use-local-libjs-mathjax.patch

doc/sphinx/conf.py

index c6f1a8494d83030d0a61d14aa562410ec0a067ec..370c873f98b41792fcb8e42d664f0b4a3e65056e 100644 (file)
@@ -68,6 +68,8 @@ html_extra_path = ['olddocs']
 # Don't copy source rst files into the output
 html_copy_source = False
 
+mathjax_path = 'mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'
+
 # Set the main page
 master_doc = 'index'