Control: tags 1066967 +unreproducible
Hi Holger!
On Sat, Mar 16, 2024 at 09:52:54AM +0100, Holger Wansing wrote:
> Package: sphinx-common
> Severity: serious
>
> Hi,
>
> dh_sphinxdoc does not work well with read-the-doc theme, apparently.
> Debian policy document has switched to sphinx_rtd_theme recently (see
> https://salsa.debian.org/dbnpolicy/policy/-/commit/686622814018b5a121252b189d99c1968f332b78
> )
>
> However, the built document has a completely broken html layout, because
> many files under _static/ are empty (0B size), most noteably
> _static/css/theme.css.
>
> If I replace
> dh $@ --with sphinxdoc
> by
> dh $@
> (so do not use dh_sphinxdoc), I get a valid html file with the theme
> in use.
I cannot reproduce this. I downloaded debian-policy source package and built
it in an up-to-date sid chroot. And the built package has this:
$ dpkg-deb -c debian-policy_4.6.2.1_all.deb | grep theme.css
lrwxrwxrwx root/root 0 2024-02-24 15:39
./usr/share/doc/debian-policy/policy.html/_static/css/theme.css ->
../../../../../sphinx_rtd_theme/static/css/theme.css
So, it is a symlink, not an empty file. When resolving the relative path,
I get /usr/share/sphinx_rtd_theme/static/css/theme.css, and that file
exists in sphinx-rtd-theme-common and is non-empty.
The only issue I see is that sphinx-rtd-theme-common is in Recommends of
debian-policy, not in Depends. But that is because ${sphinxdoc:Depends}
was put there.
Am I doing something wrong?
--
Dmitry Shachnev
signature.asc
Description: PGP signature