Re: Differences in `web.html`

2023-03-21 Thread Carl Sorensen



On 3/21/23, 10:11 AM, 
"lilypond-devel-bounces+carl.d.sorensen+digest=gmail@gnu.org" 
 wrote:
Le mardi 21 mars 2023 à 04:11 +, Werner LEMBERG a écrit :
> Thanks for the explanations.  Do I understand correctly that we have a
> nifty feature (namely showing the file size to download) that stays
> unused because it would be too expensive for deployment, both CPU- and
> time-wise?

Technically, you can see it on 
[https://lilypond.org/doc/v2.25/Documentation/web/notation.html](https://lilypond.org/doc/v2.25/Documentation/web/notation.html),
 as opposed to 
[https://lilypond.org/notation.html](https://lilypond.org/notation.html). Not 
sure if anybody uses that, though.

When I go to your links, I only see the size of the PDF, not the HTML.

Carl




Re: Differences in `web.html`

2023-03-21 Thread Jean Abou Samra
Le mardi 21 mars 2023 à 04:11 +, Werner LEMBERG a écrit :
> Thanks for the explanations.  Do I understand correctly that we have a
> nifty feature (namely showing the file size to download) that stays
> unused because it would be too expensive for deployment, both CPU- and
> time-wise?

Technically, you can see it on 
[https://lilypond.org/doc/v2.25/Documentation/web/notation.html](https://lilypond.org/doc/v2.25/Documentation/web/notation.html),
 as opposed to 
[https://lilypond.org/notation.html](https://lilypond.org/notation.html). Not 
sure if anybody uses that, though.


signature.asc
Description: This is a digitally signed message part


Re: Differences in `web.html`

2023-03-20 Thread Werner LEMBERG

Jonas wrote:

>> I see the attached difference.  Is it an oversight that
>> `scripts/build/fix-docsize.sh` is not executed while building the
>> website on 'lilypond.org'?
> 
> Yes, intentionally so: "make website" does not execute it because it
> doesn't have access to the linked manuals and cannot fill in its
> size.  Based on the path above, you've been executing "make doc"
> which also generates the website as part of it. Btw, there are a
> number of other differences, search for "web_version" in the
> Documentation/web/* files.

Han-Wen wrote:

> note that the website isn't built on lilypond.org anymore. Rather,
> there is a cronjob that downloads an artifact from gitlab, see
> https://gitlab.com/hahnjo/lilypond-infrastructure/-/blob/master/website/main.go

Thanks for the explanations.  Do I understand correctly that we have a
nifty feature (namely showing the file size to download) that stays
unused because it would be too expensive for deployment, both CPU- and
time-wise?


Werner


Re: Differences in `web.html`

2023-03-20 Thread Han-Wen Nienhuys
On Mon, Mar 20, 2023 at 3:35 PM Werner LEMBERG  wrote:
>
>
> Comparing
>
>   http://lilypond.org/web.html
>
> with a self-compiled
>
>   .../out-www/offline-root/Documentation/web/web.html
>
> I see the attached difference.  Is it an oversight that
> `scripts/build/fix-docsize.sh` is not executed while building the
> website on 'lilypond.org'?

note that the website isn't built on lilypond.org anymore. Rather,
there is a cronjob that downloads an artifact from gitlab, see
https://gitlab.com/hahnjo/lilypond-infrastructure/-/blob/master/website/main.go

-- 
Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen



Re: Differences in `web.html`

2023-03-20 Thread Jonas Hahnfeld via Discussions on LilyPond development
On Mon, 2023-03-20 at 14:34 +, Werner LEMBERG wrote:
> Comparing
> 
>   http://lilypond.org/web.html
> 
> with a self-compiled
> 
>   .../out-www/offline-root/Documentation/web/web.html
> 
> I see the attached difference.  Is it an oversight that
> `scripts/build/fix-docsize.sh` is not executed while building the
> website on 'lilypond.org'?

Yes, intentionally so: "make website" does not execute it because it
doesn't have access to the linked manuals and cannot fill in its size.
Based on the path above, you've been executing "make doc" which also
generates the website as part of it. Btw, there are a number of other
differences, search for "web_version" in the Documentation/web/* files.

> PS: That we now see 'web.pdf' instead of 'Web.pdf' seems to be a
>     consequence of commit d638af5410936d255f.

No, this has nothing to do with that - it's not even a button in a
navigation bar! It is because of weblinks.itexi and which macros are
used depending on "web_version" (see above).


signature.asc
Description: This is a digitally signed message part