X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Flilypond-texi2html.init;h=57340912510302b52f96a6ee8a2c9953bb262cd2;hb=bd5233c02b1ba97029810ced58b8ea2c8ea0e759;hp=96f4cb2d28765dae72cef1fedbedbb0d4349dc33;hpb=5cf3f24eb042684b985ab4b3c5f14e46dfac0082;p=lilypond.git diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index 96f4cb2d28..5734091251 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -794,10 +794,12 @@ sub lilypond_css_lines ($$) $Texi2HTML::THISDOC{'CSS_LINES'} .= "{FILENAME}\" title=\"$ref->{TITLE}\">\n"; } - # FIXME: the website doesn't use ie7-specific fixes; do the - # docs still need this? -gp - $Texi2HTML::THISDOC{'CSS_LINES'} .= - "\n"; + + # The ie-fixes stylesheet is needed for the docs, but not the website. + if (not ($web_manual)) { + $Texi2HTML::THISDOC{'CSS_LINES'} .= + "\n"; + } if ($ENV{'AJAX_SEARCH'} == 1) { # Add the JavaScript file only if we have an index. @@ -1372,7 +1374,15 @@ sub lilypond_print_toc_div ($$) $lang = ""; } my $reldir = $ENV{DEPTH}; - my $uplink = $reldir."/Documentation/web/manuals.${lang}html"; + # strip one depth level for translations + if ($lang and $lang ne "en" and substr ($reldir, 0, 3) eq '../') { + $reldir = substr ($reldir, 3); + } + # add a / at the end if there isn't one. + if (substr ($reldir, -1) ne '/') { + $reldir .= '/'; + } + my $uplink = $reldir."Documentation/web/manuals.${lang}html"; if (not $web_manual) { print $fh "