[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Please help tracking down this issue in test suite [Was: Bug#811002: python-ruffus: FTBFS: sre_constants.error: unbalanced parenthesis at position 2]



Hi Andreas,

On Fri, Jan 15, 2016 at 12:50:42PM +0100, Andreas Tille wrote:
> Before I upload I would like to ask for some proper advise how to
> deal with
>
>    privacy-breach-uses-embedded-file ... You may use libjs-mathjax package.
>
> lintian errors.  I have done this in d/rules by
>
>    find debian/$(docpkg)/usr/share/doc/$(docpkg)/html -type f -name "*.html" -exec sed -i 's?http://cdn.mathjax.org/mathjax/latest/?/usr/share/javascript/mathjax?g' \{\} \;
>
> which is not reliable since probably due to some change in sphinx the
> expression has changed.  I wonder whether I could elegantly patch the
> file doc/conf.py which has:
>
> # Add any Sphinx extension module names here, as strings. They can be extensions
> # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
> extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo',
>               'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.ifconfig', 'sphinx.ext.viewcode']
>
> Is there anything I could do here to use local mathjax from beginning
> instead of patching the resulting docs afterwards?

Yes, add this line to doc/conf.py:

mathjax_path = 'file:///usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML'

And add libjs-mathjax to Depends.

--
Dmitry Shachnev

Attachment: signature.asc
Description: PGP signature


Reply to: