lilypond-auto
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5822 Calculat


From: Auto mailings of changes to Lily Issues via Testlilyissues-auto
Subject: [Lilypond-auto] [LilyIssues-auto] [testlilyissues:issues] #5822 Calculate download sizes rather than hardcoding them
Date: Fri, 06 Mar 2020 10:42:50 -0000

Diff:


This fails right at the end of a full make doc.

...
Making Documentation/zh/out-www/web-big-page.html < texi
/home/jlowe/lilypond-git/build/.././Documentation/po/GNUmakefile:30: warning: overriding recipe for target 'po-update'
/home/jlowe/lilypond-git/build/../stepmake/stepmake/podir-targets.make:14: warning: ignoring old recipe for target 'po-update'
Making Documentation/out-www/web-big-page.zh.html (hard link)
Making Documentation/out-www/web/index.zh.html (hard links)
Making .htaccess 
Making out-www/offline-root/index.html 
Mirroring...
Processing HTML pages for offline target...
fix-docsize: web.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.it.html
fix-docsize: web.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.fr.html

... more of the same for all the languages ... then ends as:

fix-docsize: music-glossary.es.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.es.html
fix-docsize: snippets.es.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.es.html
fix-docsize: web.es.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.es.html
fix-docsize: web.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.de.html
fix-docsize: přispěvatel-big-page.html not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.cs.html
fix-docsize: přispěvatel.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.cs.html
fix-docsize: web.pdf not accessible from /home/jlowe/lilypond-git/build/out-www/offline-root/Documentation/web-big-page.cs.html

The messages repeat for all the languages


[issues:#5822] Calculate download sizes rather than hardcoding them

Status: Started
Created: Fri Mar 06, 2020 01:19 AM UTC by David Kastrup
Last Updated: Fri Mar 06, 2020 01:20 AM UTC
Owner: David Kastrup

Calculate download sizes rather than hardcoding them

This has several problems yet. The most relevant problem may be that
I have no clue how our actual webpages are being compiled, so this
likely would render the web pages silent about download sizes.

It works on the offline-root web pages intended as HTML documentation.
However, at the completion of make doc, numerous files are flagged as
not being available for size calculations. This is not really a
problem with this patch: it turns out that the respective links would
actually all be dead. So this is something that should be fixed
independently.

In contrast, the live webpage may have some links where the script
complains that aren't dead as much as dependent on the browser's
language settings (which is a bad idea since it does not allow
browsing documentation that does not correspond to your selected
browser language).

Contains two commits:

Replace hardwired download sizes with HTML comment

Download sizes given in web page and HTML pages tended to have
diverged a lot from reality. This patch removes all of the download
sizes but adds special HTML comments into the HTML files that
previously contained size estimates. These comments can then be
replaced by the actual sizes with a postprocessing script.

As a consequence, PDF and Info versions now no longer contain download
size estimates.

Replace HTML size comments with human-readable size

This calculates download sizes as the last step of HTML generation and
puts them into the HTML files for reference.

The work is done by scripts/build/fix-docsize.sh .

It does that by replacing the size-requesting HTML comments in the
files given on the command line by the respective human-readable size.

scripts/build/fix-docsize.sh is run in the respective directories as
the final step of generating the HTML versions.

This script uses ls -sh in order to get a human-readable size spec.

http://codereview.appspot.com/567340043


Sent from sourceforge.net because address@hidden is subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/testlilyissues/admin/issues/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
Testlilyissues-auto mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

reply via email to

[Prev in Thread] Current Thread [Next in Thread]