Bug#872944: www.debian.org: Debian Policy Manual not fully published

Laura Arjona Reina <[email protected]>
Newsgroups gmane.linux.debian.devel.www
Message-ID <f2c0fa2f-961a-3775-496d-0942aec846a1__23966.2534710535$1503475040$gmane$org@debian.org>
Hello

I've been reading the 7doc script and I think the problem is that
currently the sphinx-based policy manual stores the css files in a
subfolder called _static and our cron script does not contemplate that.

The called function is mvhtml() that uses pagepattern="$basedir/*.css"
for moving the css files, but that does not match the structure of
sphinx-based documentation.

We have another function mvhtml2() that uses
pagepattern="$basedir/Common_Content/css/*.css" (for the Debian
Handbook), but that structure of folders does not match the sphinx-based
documentation either.

I have created a new mvhtml_sphinx() function, adapting mvhtml() to copy
 _static/* (instead of /*.css) as well as _image/* (instead of image/*);
and called that function for debian-policy manual, instead of calling
mvhtml().

See commit:

https://anonscm.debian.org/cgit/debwww/cron.git/commit/?id=64faa5504f980c377ed6e44d0a61f1943336b102

Let's see if after that the debian-policy manual appears in the website
incuding images and styiling.

The _static folder includes some symlinks to javascript. Those will
probably not work yet, we'll need to tweak more the mvhtml_sphinx()
function, but let's go step by step.

Cheers

-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona


El 22/08/17 a las 21:21, Sean Whitton escribió:
> Package: www.debian.org
> Severity: important
> 
> Hello webmasters,
> 
> The Debian Policy Manual just changed its HTML output and while the
> HTML has published, the CSS and included images have not.
> 
> Looking at [1], the CSS and included images should have been published
> because they're still installed to
> /usr/share/doc/debian-policy/policy.html/.  So I think this is a problem
> on your end rather than ours.  Please do reassign this bug if I'm wrong
> about that, and thanks in advance for your help.
> 
> [1]  https://anonscm.debian.org/cgit/debwww/cron.git/tree/parts/7doc
> 
> -- System Information:
> Debian Release: buster/sid
>   APT prefers testing
>   APT policy: (900, 'testing'), (100, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.12.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.