1 ;;; generate-documentation.scm -- Generate documentation
3 ;;; source file of the GNU LilyPond music typesetter
5 ;;; (c) 2000--2001 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)
18 ;;;;;;;;;;;;;;;; TODO : make modules of these!
21 (define load-files '("documentation-lib.scm"
22 "function-documentation.scm"
23 "engraver-documentation-lib.scm"
24 "music-documentation-lib.scm"
25 "backend-documentation-lib.scm"
28 (map load-from-path load-files)
31 ;;(define no-copies #t) ; from 490 to 410K, but doesn't look nice yet
33 ;; Also, copies of interfaces use up lots more space, but that's
34 ;; functional because the default property values of the interfaces
38 (let* ((doc (string-append
39 (document-music "Music properties")
40 (document-paper "Contexts")
41 (document-all-engravers "Engravers")
42 (document-all-engraver-properties "Context properties")
43 (document-all-grobs "Grob overview")
44 (document-all-interfaces "Interfaces")
46 (node "Backend properties")
47 (texi-section 1 "Backend properties" #f)
49 (document-all-backend-properties "Backend properties")
51 (node "Function documentation")
52 (texi-section 1 "Function documentation" #f)
54 (document-all-scheme-functions)
58 (name "lilypond-internals")
59 (outname (string-append name ".texi"))
60 (out (open-output-file outname)))
67 ;; we can't use (dir) and top if we're included by lilypond.tely
68 "LilyPond internals" name "(lilypond.info)"
70 ("Music properties" . "properties for Music representation")
71 ("Contexts" . "Hierarchy and grouping of Engravers")
72 ("Engravers" . "Engravers create Grobs")
73 ("Context properties" . "context properties")
74 ("Grob overview" . "Detailed description of all Grobs")
75 ("Interfaces" . "Grob Interfaces")
76 ("Backend properties" . "Grob properties")
77 ("Function documentation" . "All embedded functions")
86 @unnumbered Concept index
90 @unnumbered Variable index
94 @unnumbered Function index
104 (newline (current-error-port))