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
75 @macro usermanref{NAME}
76 @ref{\\NAME\\,,,lilypond}
80 @macro glossaryref{NAME}
81 @ref{\\NAME\\,,,music-glossary}
85 @macro inputfileref{DIR,NAME}
86 @uref{source/\\DIR\\/out-www/collated-files.html#\\NAME\\,@file{\\DIR\\/\\NAME\\}}@c
91 ‘\\TEXT\\’
100 @macro usermanref{NAME}
101 @inforef{\\NAME\\,,,lilypond}
105 @macro glossaryref{NAME}
106 @inforef{\\NAME\\,,lilypond/music-glossary}
110 @macro inputfileref{DIR,NAME}
111 @file{\\DIR\\/\\NAME\\}
123 @macro usermanref{NAME}
127 @macro inputfileref{DIR,NAME}@c
128 @file{\\DIR\\/\\NAME\\}@c
137 @macro internalsref{NAME}
143 @omftitle LilyPond internals
144 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
145 @omfdescription Programmer's reference of the LilyPond music engraving system
146 @omftype user's guide
148 @omfcategory Applications|Publishing
159 (string-append "This is the program reference for version "
161 " of LilyPond, the GNU music typesetter.")
166 (translation-doc-node)
168 (all-scheme-functions-doc)
172 @unnumbered Concept index
176 @unnumbered Function index
182 (dump-node top-node out-port 0)
183 (newline (current-error-port))