1 ;;;; generate-documentation.scm -- Generate documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 2000--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 ;;;; Jan Nieuwenhuizen <janneke@gnu.org>
8 ;;; File entry point for generated documentation
9 ;;; Running LilyPond on this file generates the documentation
11 ;;(set-debug-cell-accesses! 5000)
14 ;;;;;;;;;;;;;;;; TODO : make modules of these!
17 ;; todo: naming: grob vs. layout property
19 (map ly:load '("documentation-lib.scm"
20 "document-functions.scm"
21 "document-translation.scm"
23 "document-identifiers.scm"
24 "document-backend.scm"
25 "document-markup.scm"))
27 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
30 (slot-ref (all-scheme-functions-doc) 'text)
31 (open-output-file "scheme-functions.tely"))
35 (open-output-file "markup-commands.tely"))
38 (markup-list-doc-string)
39 (open-output-file "markup-list-commands.tely"))
42 (identifiers-doc-string)
43 (open-output-file "identifiers.tely"))
47 (backend-properties-doc-string all-user-grob-properties)
48 (open-output-file "layout-properties.tely"))
51 (translation-properties-doc-string all-user-translation-properties)
52 (open-output-file "context-properties.tely"))
54 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
56 (define file-name "lilypond-internals")
57 (define outname (string-append file-name ".texi"))
59 (define out-port (open-output-file outname))
65 (texi-file-head "LilyPond program-reference" file-name
66 "(lilypond/lilypond-internals.info)")
69 @c NOTE: This is documentation-generate.scm, not macros.itexi
78 @ref{\\TEXT\\,,,lilypond-big-page,Notation Reference}
82 @macro glossaryref{TEXT}
84 @ref{\\TEXT\\,,,music-glossary-big-page,Music Glossary}
92 @ref{\\NAME\\,,,lilypond,Notation Reference}
96 @macro glossaryref{NAME}
97 @ref{\\NAME\\,,,music-glossary,Music Glossary}
103 @macro inputfileref{DIR,NAME}
104 @uref{source/\\DIR\\/out-www/collated-files.html#\\NAME\\,@file{\\DIR\\/\\NAME\\}}@c
109 ‘\\TEXT\\’
119 @inforef{\\NAME\\,,,lilypond}
123 @macro glossaryref{NAME}
124 @inforef{\\NAME\\,,lilypond/music-glossary}
128 @macro inputfileref{DIR,NAME}
129 @file{\\DIR\\/\\NAME\\}
145 @macro inputfileref{DIR,NAME}@c
146 @file{\\DIR\\/\\NAME\\}@c
155 @macro internalsref{NAME}
161 @omftitle LilyPond internals
162 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
163 @omfdescription Programmer's reference of the LilyPond music engraving system
164 @omftype user's guide
166 @omfcategory Applications|Publishing
177 (string-append "This is the program reference for version "
179 " of LilyPond, the GNU music typesetter.")
184 (translation-doc-node)
186 (all-scheme-functions-doc)
190 @unnumbered Concept index
194 @unnumbered Function index
200 (dump-node top-node out-port 0)
201 (newline (current-error-port))