#1059621 sphinx-common: dh_sphinxdoc fails to run: "search.html does not load searchindex.js"

#1059621#5
Date:
2023-12-29 12:59:53 UTC
From:
To:
I'm trying to run dh_sphinxdoc on new docs generated for lammps.
But dh_sphinxdoc fails:

$ dh_sphinxdoc
dh_sphinxdoc: error: debian/lammps-doc/usr/share/doc/lammps/html/search.html does not load searchindex.js

with exit code 255.

Well no kidding, search.html really does not reference searchindex.js.
Why is this causing dh_sphinxdoc to fail?  dh_sphinxdoc should be
replacing existing .js references in the html files, not complaining
about ones which are not there.

Adding an -Xsearch.html option does not fix the problem.