OK, update on this... On Sun, Nov 21, 2021 at 12:24:15PM +0000, Julian Gilbey wrote: > On Mon, Oct 04, 2021 at 12:26:35PM +0200, Drew Parsons wrote: > > Source: mathjax > > Followup-For: Bug #989649 > > > > It's not always so simple as adding the conf.py patch. > > > > For the example of fenics-dolfinx 0.3.0-3 (in experimental), the > > lintian privacy-breach-generic warning complains about > > > > https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js > > > > But there is no local tex-mml-chtml.js file to replace it with. > > That shouldn't be a problem; have a look at > /usr/lib/python3/dist-packages/sphinx/ext/mathjax.py > This is where the tex-mml-chtml.js file is referred to, but that is > overridden by the mathjax_path config file variable.
So all you have to do is add: mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML' to docs/conf.py > Unfortunately, though, this completely fails to work with Firefox: > [...] The rest of this turns out to be a bug in version 94.0-1 of Debian Firefox (at least on my machine). Upgrading to 94.0-2 fixed the issue, and the Sphinx-generated documentation (with the mathjax_path patch) now works fine. Best wishes, Julian