[Python-modules-team] Bug#841141: /usr/bin/dh_sphinxdoc: dh_sphinxdoc doesn't recognise search pages with nonstandard paths
Ximin Luo
infinity0 at debian.org
Mon Oct 17 23:42:56 UTC 2016
Package: sphinx-common
Version: 1.4.6-1
Severity: important
File: /usr/bin/dh_sphinxdoc
Tags: patch
Dear Maintainer,
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,
X
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (300, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages sphinx-common depends on:
ii libjs-sphinxdoc 1.4.6-1
Versions of packages sphinx-common recommends:
ii python-sphinx 1.4.6-1
ii python3-sphinx 1.4.6-1
sphinx-common suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/bin/dh_sphinxdoc (from sphinx-common package)
More information about the Python-modules-team
mailing list