[Python-modules-team] Bug#841141: /usr/bin/dh_sphinxdoc: dh_sphinxdoc doesn't recognise search pages with nonstandard paths

Dmitry Shachnev mitya57 at debian.org
Wed Oct 19 15:47:20 UTC 2016


Hi Ximin,

On Tue, Oct 18, 2016 at 01:42:56AM +0200, Ximin Luo wrote:
> SageMath generates docs with search indexes like this:
>
>     jQuery(function() { Search.loadIndex("../searchindex.js"); });
>
> This is not recognised by dh_sphinxdoc. If you change
>
> 192: my $loads_searchindex = $search =~ m/\QjQuery(function() { Search.loadIndex("searchindex.js"); });\E/;
>
> to 
>
> 192: my $loads_searchindex = $search =~ m/\QjQuery(function() { Search.loadIndex("\E([^\/]*\/)?\Qsearchindex.js"); });\E/;
>
> it will fix the problem.

Thanks for catching this. According to the template, the path can be
arbitrary, so I went further and disabled the path check at all (left
only the check for loadIndex(...) call).

Do you want me to do a new upload now, or this can wait?

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20161019/03df1535/attachment.sig>


More information about the Python-modules-team mailing list