1 ;;;; generate-documentation.scm -- Generate documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 2000--2006 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-backend.scm"
24 "document-markup.scm"))
26 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
29 (slot-ref (all-scheme-functions-doc) 'text)
30 (open-output-file "scheme-functions.tely"))
34 (open-output-file "markup-commands.tely"))
38 (backend-properties-doc-string all-user-grob-properties)
39 (open-output-file "layout-properties.tely"))
42 (translation-properties-doc-string all-user-translation-properties)
43 (open-output-file "context-properties.tely"))
45 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
47 (define file-name "lilypond-internals")
48 (define outname (string-append file-name ".texi"))
50 (define out-port (open-output-file outname))
56 (texi-file-head "LilyPond program-reference" file-name
57 "(lilypond/lilypond-internals.info)")
60 @c NOTE: This is documentation-generate.scm, not macros.itexi
63 @macro usermanref{NAME}
64 @ref{\\NAME\\,,,lilypond}
70 @macro usermanref{NAME}
71 @inforef{\\NAME\\,,,lilypond}
77 @macro usermanref{NAME}
83 @macro glossaryref{NAME}
84 @ref{\\NAME\\,,,music-glossary}
90 @macro glossaryref{NAME}
91 @inforef{\\NAME\\,,lilypond/music-glossary}
97 @macro internalsref{NAME}
103 @macro inputfileref{DIR,NAME}
104 @uref{source/\\DIR\\/out-www/collated-files.html#\\NAME\\,@file{\\DIR\\/\\NAME\\}}@c
111 @macro inputfileref{DIR,NAME}
112 @file{\\DIR\\/\\NAME\\}
118 @macro inputfileref{DIR,NAME}@c
119 @file{\\DIR\\/\\NAME\\}@c
125 @omftitle LilyPond internals
126 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
127 @omfdescription Programmer's reference of the LilyPond music engraving system
128 @omftype user's guide
130 @omfcategory Applications|Publishing
141 (string-append "This is the program reference for LilyPond version " (lilypond-version))
146 (translation-doc-node)
148 (all-scheme-functions-doc)
152 @unnumbered Concept index
156 @unnumbered Variable index
160 @unnumbered Function index
166 (dump-node top-node out-port 0)
167 (newline (current-error-port))