From 2c5c32d3962d6a2b21b24770c42fbc39b11b75dc Mon Sep 17 00:00:00 2001 From: Graham Percival Date: Sat, 30 Jan 2010 21:29:03 +0000 Subject: [PATCH] Build: another ugly hack for website integration. 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 | 9 +++++++++ website.make | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index 9635e3a41b..8efff62b10 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -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); diff --git a/website.make b/website.make index a6752531f8..1920c2654f 100644 --- a/website.make +++ b/website.make @@ -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 -- 2.39.2