]> git.donarmstrong.com Git - lilypond.git/commitdiff
Build: another ugly hack for website integration.
authorGraham Percival <graham@percival-music.ca>
Sat, 30 Jan 2010 21:29:03 +0000 (21:29 +0000)
committerGraham Percival <graham@percival-music.ca>
Sat, 30 Jan 2010 21:29:03 +0000 (21:29 +0000)
My comment for issue 1004 (opened for this patch):
As release manager, I feel that I should reject the patches I'm
writing because they are, as "weegies" (people from Glasgow) would
put it, "utter pish".  However, as overall manager, I want to let
doc writers and translators work on the website and see how it
really looks.

Given my doc roots, the doc side wins, so I'm hacking stuff.  But
only with the promise that this item is High priority, and that
I'll work on it as soon as I've finished all Critical items.  It
*will* be fixed before GLISS starts.  GOP might start first, if
everything else is already in place.

Documentation/lilypond-texi2html.init
website.make

index 9635e3a41b9f206d7756ea9dd51669c43f42b586..8efff62b1022dce8bcb7f11a144a508a81750f01 100644 (file)
@@ -1029,6 +1029,15 @@ sub lilypond_external_href($$$)
   if (defined $file) {
     $href = &$default_external_href($node, $node_id, $node_hxmlt_id, lc($file));
     remove_unneeded_anchor($href);
+
+    # TODO: very yucky, but will be fixed in issue 1004
+    if ($web_manual) {
+      my $only_web = $ENV{ONLY_WEB};
+      if ($only_web) {
+        $href = "../../doc/v2.13/Documentation/web/".$href;
+      }
+    }
+
     return $href;
   } else {
     $href = &$default_external_href($node, $node_id, $node_hxmlt_id);
index a6752531f89903a69fb8c0881b11f02ef2891159..1920c2654fd8f84debfb14d155555b4cec7c7d74 100644 (file)
@@ -28,7 +28,7 @@ endif
 ################################################################
 OUT=out-website
 
-TEXI2HTML=TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
+TEXI2HTML=ONLY_WEB=1 TOP_SRC_DIR=$(top-src-dir) DEPTH=$(depth) PERL_UNICODE=SD $(TEXI2HTML_PROGRAM)
 
 EXTRACT_TEXI_FILENAMES=python $(script-dir)/extract_texi_filenames.py
 CREATE_VERSION=python $(script-dir)/create-version-itexi.py