]> git.donarmstrong.com Git - lilypond.git/commitdiff
* GNUmakefile.in: Include symlinks in webball.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 3 Apr 2005 12:03:06 +0000 (12:03 +0000)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 3 Apr 2005 12:03:06 +0000 (12:03 +0000)
* Documentation/user/GNUmakefile (source-links): Add symlinks to
source dir for split and non-split manuals.

* stepmake/bin/add-html-footer.py (do_file): Remove info's
annoying's indication of referencing external document.

ChangeLog
Documentation/user/GNUmakefile
Documentation/user/introduction.itely
Documentation/user/invoking.itely
Documentation/user/lilypond.tely
Documentation/user/macros.itexi
Documentation/user/music-glossary.tely
GNUmakefile.in
stepmake/bin/add-html-footer.py

index 4589431fb34e9b7be8fd370d114e29e518db0a9b..cfc7f4c38d3577b269f1496ff0967ddb1e6375d9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+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.
index 3d6452e5b5f8e8b54be2f2dadc51a191bf7a9431..1720b33374407960ed38d0822ca0dfd74b4007ca 100644 (file)
@@ -185,8 +185,24 @@ DEEP_HTML_FILES =\
  $(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
 
index 99cb884078c0ea13d5f0ce37f1028394ebbb9edb..529716a9aebd77395b8205ca96dbb72088d1f7de 100644 (file)
@@ -715,7 +715,7 @@ available in
 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.
@@ -729,7 +729,7 @@ If you are not familiar with music notation or music terminology
 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.
@@ -749,7 +749,7 @@ documentation package for your platform:
 @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,
@@ -767,9 +767,13 @@ the generated documentation.  In the HTML document, these subsections
 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
 
@@ -778,9 +782,13 @@ available as a big HTML document, with pictures and explanatory texts
 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
index d3feb6b4a7ff8865e6a31ad9affdf267bf6e3279..680277fd4194ab835757e7a8f8ec69fed299b99e 100644 (file)
@@ -350,7 +350,7 @@ and syntax coloring, handy compile short-cuts and reading LilyPond
 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.
@@ -361,7 +361,7 @@ 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.
index f9e251052015a1f8919ff580862398ca135fe407..245e794937a44b4c92883d046a2649795decc246 100644 (file)
@@ -150,8 +150,8 @@ HINTS FOR STYLE
 @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
 
 
index 242628d9e098072b21ae33ede5a15b010423f76c..6bec5f561ddbcb5ccb470f539f52c614057c2b5e 100644 (file)
 
 
 
-@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
index eb2fe604b259b325a1c4ee616f6294d43bca21a1..66113190f57fce415c4c8a91ca39c42c3560a238 100644 (file)
@@ -9,8 +9,8 @@
 @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
index 41ca6d4e35ca213f5cb9ddb3322534a7d1784b37..56b48ac5911150bcf261d5632a84868f6c59650b 100644 (file)
@@ -74,7 +74,7 @@ local-WWW-post:
        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
index 3946a737809bdf77b1c2c45f00d688d79277c24c..e188495a767ecbea0722e9bc547900dd0dd8d617 100644 (file)
@@ -279,6 +279,10 @@ def do_file (f):
        
        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)