1 ;;; generate-documentation.scm -- Generate documentation
3 ;;; source file of the GNU LilyPond music typesetter
5 ;;; (c) 2000--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6 ;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;; File entry point for generated documentation
10 ;;; Running LilyPond on this file generates the documentation
13 (debug-enable 'backtrace)
14 (read-enable 'positions)
17 ;;;;;;;;;;;;;;;; TODO : make modules of these!
20 ; todo: naming: grob vs. layout property
22 (define load-files '("documentation-lib.scm"
23 "document-functions.scm"
24 "document-translation.scm"
26 "document-backend.scm"
29 (map ly:load load-files)
31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
34 (slot-ref (all-scheme-functions-doc) 'text)
35 (open-output-file "scheme-functions.tely"))
39 (open-output-file "markup-commands.tely"))
43 (backend-properties-doc-string all-user-grob-properties)
44 (open-output-file "layout-properties.tely") )
47 (translation-properties-doc-string all-user-translation-properties)
48 (open-output-file "context-properties.tely") )
49 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
52 (define file-name "lilypond-internals")
53 (define outname (string-append file-name ".texi"))
56 (define out-port (open-output-file outname))
66 (texi-file-head "LilyPond program-reference" file-name
67 "(lilypond-internals.info)")
71 @macro usermanref{NAME}
72 @uref{../lilypond/\\NAME\\.html,\\NAME\\}
78 @macro usermanref{NAME}
79 @ref{\\NAME\\,,,lilypond/lilypond}
85 @macro usermanref{NAME}
91 @macro glossaryref{NAME}
92 @uref{../music-glossary/\\NAME\\.html,\\NAME\\}
98 @macro glossaryref{NAME}
99 @inforef{\\NAME\\,,lilypond/music-glossary}
105 @macro internalsref{NAME}
111 @macro inputfileref{DIR,NAME}
112 @uref{../../../../\\DIR\\/out-www/collated-files.html#\\NAME\\,@file{\\DIR\\/\\NAME\\}}@c
119 @macro inputfileref{DIR,NAME}
120 @file{\\DIR\\/\\NAME\\}
126 @macro inputfileref{DIR,NAME}@c
127 @file{\\DIR\\/\\NAME\\}@c
134 @omftitle LilyPond internals
135 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
136 @omfdescription Programmer's reference of the LilyPond music engraving system
137 @omftype user's guide
139 @omfcategory Applications|Publishing
151 (translation-doc-node)
153 (all-scheme-functions-doc)
157 @unnumbered Concept index
161 @unnumbered Variable index
165 @unnumbered Function index
176 (dump-node top-node out-port 0)
177 (newline (current-error-port))