1 ;;;; generate-documentation.scm -- Generate documentation
3 ;;;; source file of the GNU LilyPond music typesetter
5 ;;;; (c) 2000--2008 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"))
34 ;; (markup-doc-string)
35 ;; (open-output-file "markup-commands.tely"))
37 (call-with-output-file "markup-commands.tely"
39 (dump-node (markup-doc-node) port 2)))
41 (call-with-output-file "markup-list-commands.tely"
43 (dump-node (markup-list-doc-node) port 2)))
46 (identifiers-doc-string)
47 (open-output-file "identifiers.tely"))
51 (backend-properties-doc-string all-user-grob-properties)
52 (open-output-file "layout-properties.tely"))
55 (translation-properties-doc-string all-user-translation-properties)
56 (open-output-file "context-properties.tely"))
58 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
60 (define file-name "lilypond-internals")
61 (define outname (string-append file-name ".texi"))
63 (define out-port (open-output-file outname))
69 (texi-file-head "LilyPond program-reference" file-name
70 "(lilypond/lilypond-internals.info)")
76 @omftitle LilyPond internals
77 @omfcreator Han-Wen Nienhuys and Jan Nieuwenhuizen
78 @omfdescription Programmer's reference of the LilyPond music engraving system
81 @omfcategory Applications|Publishing
86 @c don't replace quotes with directed quotes
88 \\gdef\\SETtxicodequoteundirected{Foo}
89 \\gdef\\SETtxicodequotebacktick{Bla}
97 @subtitle The music typesetter
98 @titlefont{Internals Reference}
99 @author The LilyPond development team
101 Copyright @copyright{} 1999--2008 by the authors
105 For LilyPond version @version{}
115 #:name "GNU LilyPond -- Internals Reference"
117 (string-append "@end ifnottex
121 This document is also available as a
122 @uref{source/Documentation/user/lilypond-internals.pdf,PDF} and as
123 @uref{source/Documentation/user/lilypond-internals-big-page.html,one big page}.
126 This document is also available as a
127 @uref{source/Documentation/user/lilypond-internals.pdf,PDF} and as a
128 @uref{source/Documentation/user/lilypond-internals/index.html,HTML indexed multiple pages}.
132 This is the Internals Reference (IR) for version "
134 " of LilyPond, the GNU music typesetter.")
139 (translation-doc-node)
141 (all-scheme-functions-doc)
146 @appendixsec Concept index
150 @appendixsec Function index
156 (dump-node top-node out-port 0)
157 (newline (current-error-port))