+2005-04-03 Jan Nieuwenhuizen <janneke@gnu.org>
+
+ * GNUmakefile.in: Include symlinks in webball.
+
+ * Documentation/user/GNUmakefile (source-links): Add symlinks to
+ source dir for split and non-split manuals.
+
+ * Documentation/user/*y: Fix @uref/@inputfile links for
+ split/non-split HTML documents.
+
+ * stepmake/bin/add-html-footer.py (do_file): Remove info's
+ annoying's indication of referencing external document.
+
2005-04-02 Jan Nieuwenhuizen <janneke@gnu.org>
* buildscripts/install-info-html.sh: Fix link.
$(outdir)/lilypond/index.html\
$(outdir)/lilypond-internals/index.html
+# Symlinks to refer to external source documents from split and non-split HTML
+source-links = $(outdir)/source $(outdir)/lilypond/source # $(outdir)/music-glossary/source
+
+$(outdir)/source:
+ @rm -f $(@)
+ ln -sf ../../../ $(@)
+
+$(outdir)/lilypond/source:
+ @rm -f $(@)
+ ln -sf ../../../../ $(@)
+
+# not available in 2.4 as split document
+#$(outdir)/music-glossary/source:
+# @rm -f $(@)
+# ln -sf ../../../../ $(@)
+
local-WWW: $(HTML_FILES) $(DEEP_HTML_FILES)\
- $(datafiles) $(PDF_FILES) $(PS_GZ_FILES) info info-dir
+ $(datafiles) $(PDF_FILES) $(PS_GZ_FILES) $(source-links) info info-dir
local-WWW-clean: deep-WWW-clean
a big HTML page,
@end ifnothtml
@ifhtml
-@uref{../lilypond.html, a big HTML page}
+@uref{source/Documentation/user/out-www/lilypond.html, one big page},
@end ifhtml
which can be searched easily using the search facility of a web
browser.
to consult the glossary as well. The glossary explains musical terms,
and includes translations to various languages. It is a
@ifhtml
-@uref{../music-glossary.html,separate document}.
+@uref{source/Documentation/user/out-www/music-glossary.html,separate document}.
@end ifhtml
@ifnothtml
separate document, available in HTML and PDF.
@item
Program reference
@ifhtml
-(available @uref{../lilypond-internals/lilypond-internals.html,here})
+(available @uref{source/Documentation/user/out-www/lilypond-internals.html,here})
@end ifhtml
The program reference is a set of heavily cross linked HTML pages,
have clickable links.
@item
-Various input examples
+@ifnothtml
+Various input examples.
+@end ifnothtml
@ifhtml
-(available @uref{../../../../input/test/out-www/collated-files.html,here})
+@c Works, but link name is not so nice; so write-out macro
+@c @inputfileref{input/test,Various input examples}.
+@uref{source/input/test/out-www/collated-files.html,Various input examples}.
@end ifhtml
@cindex snippets
included.
@item
-The regression tests
+@ifnothtml
+The regression tests.
+@end ifnothtml
@ifhtml
-(available @uref{../../../../input/regression/out-www/collated-files.html,here})
+@c Works, but link name is not so nice; so write-out macro
+@c @inputfileref{input/regression,The regression tests}.
+@uref{source/input/regression/out-www/collated-files.html,The regression tests}.
@end ifhtml
This collection of files tests each notation and engraving feature of
manuals using Info. If @file{lilypond-mode} is not installed on your
platform, then read the
@ifhtml
-@uref{../../../topdocs/out-www/INSTALL.html,installation instructions}.
+@uref{source/Documentation/topdocs/out-www/INSTALL.html,installation instructions}.
@end ifhtml
@ifnothtml
installation instructions.
For @uref{http://@/www@/.vim@/.org,VIM}, a @file{vimrc} is supplied, along
with syntax coloring tools. For more information, refer to the
@ifhtml
-@uref{../../../topdocs/out-www/INSTALL.html,installation instructions}.
+@uref{source/Documentation/topdocs/out-www/INSTALL.html,installation instructions}.
@end ifhtml
@ifnothtml
installation instructions.
@end ignore
@ifhtml
-This document is also available in @uref{../lilypond.ps.gz,gzipped
-PostScript} and @uref{../lilypond.pdf,PDF}.
+This document is also available in @uref{source/Documentation/user/out-www/lilypond.ps.gz,gzipped
+PostScript} and @uref{source/Documentation/user/out-www/lilypond.pdf,PDF}.
@end ifhtml
-@c dup?
@ifhtml
+@c ***** HTML *****
- @c ***** HTML *****
-
-@macro internalsref{NAME}@c
@c makeinfo-4.7 encodes html names, which means that nodes that
@c contain nonalphanum characters will be broken links on the website.
@c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
@c better than a broken link.
@c @inforef{\NAME\,,lilypond-internals}@c
@c using @ref without punctuation is OK without for formats other than info
+
+@macro internalsref{NAME}@c
+@c annoying parentheses stripped by add-html-footer.py
@ref{\NAME\,,,lilypond-internals}@c
-@c should we do this?
@findex \NAME\
@end macro
-
- @macro inputfileref{DIR,NAME}
- @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
- @end macro
+@c usage: @inputfileref{input@/regression,FILE@/-NAME.ly}
+@macro inputfileref{DIR,NAME}
+@uref{source/\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+@end macro
@end ifhtml
-@c dup?
-@ifdocbook
- @c ***** DOCBOOK-XML *****
+@ifdocbook
+@c ***** DOCBOOK-XML *****
- @macro internalsref{NAME}
- @c makeinfo-4.7 encodes html names
- @c @uref{../lilypond-internals/\NAME\.html,\NAME\}@c
- @inforef{\NAME\,,lilypond-internals}@c
- @c should we do this?
- @findex @code{\NAME\}
- @end macro
+@macro internalsref{NAME}
+@ref{\NAME\,,,lilypond-internals}@c
+@findex @code{\NAME\}
+@end macro
- @macro usermanref{NAME}
- @inforef{\NAME\,,lilypond}@c
- @end macro
-
- @macro inputfileref{DIR,NAME}
- @uref{../../../../\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
- @end macro
+@macro inputfileref{DIR,NAME}
+@uref{source/\DIR\/out-www/collated-files.html#\NAME\,@file{\DIR\/\NAME\}}@c
+@end macro
@end ifdocbook
-@ifinfo
+@ifinfo
@c **** INFO ****
+
@macro internalsref{NAME}
@inforef{\NAME\,,lilypond/lilypond-internals}@c
@findex \NAME\@c
@end ifinfo
-@c **** TEX ****
+
@iftex
+@c **** TEX ****
@macro internalsref{NAME}@c
@findex \NAME\ @c
@end direntry
@ifhtml
-This document is also available in @uref{music-glossary.ps.gz,gzipped
-PostScript} and @uref{music-glossary.pdf,PDF}.
+This document is also available in @uref{source/Documentation/user/out-www/music-glossary.ps.gz,gzipped
+PostScript} and @uref{source/Documentation/user/out-www/music-glossary.pdf,PDF}.
@end ifhtml
@titlepage
cd $(builddir) && $(footify) `$(FIND) . -name '*.html' -print`
cd $(builddir) && rm -f `find . -name \*.html~ -print`
cd $(builddir) && find Documentation input \
- $(web-ext:%=-path '*/out-www/*.%' -or) -false \
+ $(web-ext:%=-path '*/out-www/*.%' -or) -type l \
> $(outdir)/weblist
echo '<META HTTP-EQUIV="refresh" content="0;URL=Documentation/out-www/index.html">' > $(builddir)/index.html
echo '<html><body>Redirecting to the documentation index...</body></html>' >> $(builddir)/index.html
s = remove_self_ref (s)
+ # remove info's annoying's indication of referencing external document
+ s = re.sub (' \((lilypond|lilypond-internals|music-glossary)\)</a>',
+ '</a>', s)
+
open (f, 'w').write (s)