]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/documentation-generate.scm
Web: use free software and mention that we're part of GNU.
[lilypond.git] / scm / documentation-generate.scm
index 0e6cfe32bed7fd64a75b2a3bc497e9e47f12ea96..ea13b7e04c10cb4c9a9153050717bed1abb92db3 100644 (file)
 ;; (markup-doc-string)
 ;; (open-output-file "markup-commands.tely"))
 
-(call-with-output-file "markup-commands.tely"
-  (lambda (port)
-    (dump-node (markup-doc-node) port 2)))
+(display
+ ;; ugly hack to remove the @node... @appendixsec... portion
+ (substring
+  (call-with-output-string
+   (lambda (port)
+     (dump-node (markup-doc-node) port 2)))
+  ;; magic number to remove the initial part.  63 comes from:
+  ;; "\nnode Text markup commands\n@appendixsec Text markup commands\n\n\n\n"
+  ;; which is generated by (dump-node...) in documentation-lib.scm
+  63
+  )
+ (open-output-file "markup-commands.tely"))
 
-(call-with-output-file "markup-list-commands.tely"
 (lambda (port)
   (dump-node (markup-list-doc-node) port 2)))
+(display
(markup-list-doc-string)
(open-output-file "markup-list-commands.tely"))
 
 (display
  type-predicates-doc-string