[Python-modules-team] Bug#739300: Bug#739300: dh_sphinxdoc: Please replace MathJax.js with links to the packaged libjs-mathjax

Sandro Tosi morph at debian.org
Sat Apr 9 12:27:03 UTC 2016


Is there any progress on this? I just got bitten by it:

E: python-cycler-doc: privacy-breach-uses-embedded-file
usr/share/doc/python-cycler-doc/html/_modules/cycler.html You may use
libjs-mathjax package. (https://cdn.mathjax.org/mathjax/latest/mat
hjax.js?config=tex-ams-mml_htmlormml)

a quick grep on DPMT packages, shows already scipy and networkx has to
manually symlink the file from libjs-mathjax to their local doc dir

it would be extremely helpful if sphinx could do that for us.

thanks!

On Mon, Feb 17, 2014 at 3:38 PM, Sebastian Ramacher
<sramacher at debian.org> wrote:
> Package: sphinx-common
> Version: 1.2.1+dfsg-3
> Severity: wishlist
>
> Documentation using sphinx.ext.mathjax defaults to an online copy of
> MathJax. It is possible to change mathjax_path in conf.py to use a
> packaged or local copy. I think it would be a nice addition to
> dh_sphinxdoc if it detected a local copy of MathJax.js and replaced it
> with symlinks to the packaged one.
>
> MathJax requires plenty of other files from libjs-mathjax, so simply
> symlinking MathJax.js was not enough in my tests and ended up linking
> /usr/share/javascript/mathjax into _static. I don't know if this is
> easily doable in dh_sphinxdoc, but since sphinx.ext.mathjax is a
> extension installed by python(3)-sphinx, I think dh_sphinxdoc is the
> appropriate tool to handle this.
>
> Regards
> --
> Sebastian Ramacher
>
> _______________________________________________
> Python-modules-team mailing list
> Python-modules-team at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team



-- 
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: https://plus.google.com/u/0/+SandroTosi



More information about the Python-modules-team mailing list