1 ;;; generate-documentation.scm -- Generate documentation
3 ;;; source file of the GNU LilyPond music typesetter
5 ;;; (c) 2000--2002 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 (define load-files '("documentation-lib.scm"
21 "function-documentation.scm"
22 "engraver-documentation-lib.scm"
23 "music-documentation-lib.scm"
24 "backend-documentation-lib.scm"
26 (map ly:load load-files)
29 ;;(define no-copies #t) ; from 490 to 410K, but doesn't look nice yet
31 ;; Also, copies of interfaces use up lots more space, but that's
32 ;; functional because the default property values of the interfaces
36 (define file-name "lilypond-internals")
37 (define outname (string-append file-name ".texi"))
38 (define out-port (open-output-file outname))
45 (texi-file-head "LilyPond internals" outname "(lilypond.info)")
49 @macro usermanref{NAME}
50 @uref{../lilypond/\\NAME\\.html,\\NAME\\}
56 @macro usermanref{NAME}
57 @inforef{\\NAME\\,,lilypond}
63 @macro glossaryref{NAME}
64 @uref{../music-glossary/\\NAME\\.html,\\NAME\\}
70 @macro glossaryref{NAME}
71 @inforef{\\NAME\\,,music-glossary}
84 (translation-doc-node)
86 (all-scheme-functions-doc)
90 @unnumbered Concept index
94 @unnumbered Variable index
98 @unnumbered Function index
109 (dump-node top-node out-port 0)
110 (newline (current-error-port))