X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fdocumentation-generate.scm;h=3e97f638f0d23d88acfdd1ee67be5ec2f0bafef5;hb=9d9e2e5637e06d98245c3395b58207ec173e7e7d;hp=9c9e7acf03098bfdfdd1356261fa10761a4a103b;hpb=0b47325d0eece89753b3cbf63b23c4fa614cb8b4;p=lilypond.git diff --git a/scm/documentation-generate.scm b/scm/documentation-generate.scm index 9c9e7acf03..3e97f638f0 100644 --- a/scm/documentation-generate.scm +++ b/scm/documentation-generate.scm @@ -2,7 +2,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2000--2006 Han-Wen Nienhuys +;;;; (c) 2000--2007 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen ;;; File entry point for generated documentation @@ -30,9 +30,17 @@ (slot-ref (all-scheme-functions-doc) 'text) (open-output-file "scheme-functions.tely")) -(display - (markup-doc-string) - (open-output-file "markup-commands.tely")) +;;(display +;; (markup-doc-string) +;; (open-output-file "markup-commands.tely")) + +(call-with-output-file "markup-commands.tely" + (lambda (port) + (dump-node (markup-doc-node) port 2 #t))) + +(call-with-output-file "markup-list-commands.tely" + (lambda (port) + (dump-node (markup-list-doc-node) port 2 #t))) (display (identifiers-doc-string) @@ -68,16 +76,34 @@ @ifhtml @c ***** HTML ***** -@macro usermanref{NAME} -@ref{\\NAME\\,,,lilypond} +@ifset bigpage + +@macro ruser{TEXT} +@ref{\\TEXT\\,,,lilypond-big-page,Notation Reference} +@cindex \\TEXT\\ +@end macro + +@macro glossaryref{TEXT} +@vindex \\TEXT\\ +@ref{\\TEXT\\,,,music-glossary-big-page,Music Glossary} +@end macro + +@end ifset + +@ifclear bigpage + +@macro ruser{NAME} +@ref{\\NAME\\,,,lilypond,Notation Reference} @cindex \\NAME\\ @end macro @macro glossaryref{NAME} -@ref{\\NAME\\,,,music-glossary} +@ref{\\NAME\\,,,music-glossary,Music Glossary} @cindex \\NAME\\ @end macro +@end ifclear + @macro inputfileref{DIR,NAME} @uref{source/\\DIR\\/out-www/collated-files.html#\\NAME\\,@file{\\DIR\\/\\NAME\\}}@c @end macro @@ -93,7 +119,7 @@ @ifinfo @c ***** info ***** -@macro usermanref{NAME} +@macro ruser{NAME} @inforef{\\NAME\\,,,lilypond} @cindex \\NAME\\ @end macro @@ -116,7 +142,7 @@ @iftex @c ***** TeX ***** -@macro usermanref{NAME} +@macro ruser{NAME} @ref{\\NAME\\}@c @end macro @@ -130,7 +156,7 @@ @end iftex -@macro internalsref{NAME} +@macro rinternals{NAME} @ref{\\NAME\\} @end macro @@ -144,7 +170,7 @@ @omfcategory Applications|Publishing @end ignore - +@contents ") out-port) @@ -152,7 +178,9 @@ (make #:name "Top" #:text - (string-append "This is the program reference for LilyPond version " (lilypond-version)) + (string-append "This is the program reference for version " + (lilypond-version) + " of LilyPond, the GNU music typesetter.") #:children (list @@ -167,10 +195,6 @@ @printindex cp -@unnumbered Variable index - -@printindex vr - @unnumbered Function index @printindex fn @@ -179,7 +203,3 @@ (dump-node top-node out-port 0) (newline (current-error-port)) - - - -