#1150640 sphinx-common: dh_sphinxdoc does not allow for doctools.js query parameters

#1150640#5
Date:
2026-10-11 16:24:25 UTC
From:
To:
Package: sphinx-common
Version: 9.1.0-9
Severity: normal

Dear Maintainer,

I noticed that dh_sphinxdoc does not recognize the documentation
directories during building the pacemaker-doc package because the
index.html files contain lines like

  <script src="_static/doctools.js?v=fd6eb6e6"></script>

which are not matched by the regexp in looks_like_sphinx_singlehtml_doc()
in dh_sphinxdoc.  Removing the "> part at the end of the regex let it
proceed.  I did not check if the result was correct.

Looks like the Sphinxdoc output format changed in a way dh_sphinxdoc is
not prepared for.  Please advise on the way forward.