GNOME Bugzilla – Bug 709951
yelp build ignores conditionals when creating file copy list
Last modified: 2013-11-02 18:18:23 UTC
In Ubuntu-docs, just the DeskTop help as the serverguide has no conditionals, there are "No such file or directory" errors in the copy step. Example: cp: cannot stat ‘/home/doug/docs-1310/final/ubuntu-help/C/figures/display-dual-monitors.webm’: No such file or directory However, that file should not be in the list of files to copy because it is inside conditional code that is NOT being compiled. Indeed, if one searches everywhere in the compiled HTML code that file is not referenced. The desire is to only have error messages listed that are real. Code segment area from display-dual-monitors.page (and we are compiling for unity): <if:choose> <if:when test="!platform:unity"> <section id="video-demo"> <title>Video Demo</title> <media type="video" width="500" mime="video/webm" src="figures/display-dual-monitors.webm"> <p>Demo</p> <tt:tt xmlns:tt="http://www.w3.org/ns/ttml"> <tt:body> <tt:div begin="1s" end="3s">
Fixed in master. yelp-build now determines the file list in the primary stylesheet, using much more sophisticated templates that takes stuff like conditional processing into account.
Shaun: Thanks very much. I had been meaning to contact you on ubuntu-doc IRC and ask for your help with this stuff. We will try it just as soon as possible.