AtlatestRepositorysigil-doc

sigil-doc / tree / testbuild-d6-longline.sgl

1(import (sigil core) (sigil fs) (sigil shell) (sigil doc) (sigil doc publication)
2 (sigil doc print) (sigil doc render typst))
3
4(define args (script-args))
5(unless (= (length args) 1)
6 (error "usage: build-d6-longline.sgl OUTPUT.typ"))
7(define loc (make-srcloc "longline.sgd" 1 1 0 1))
8(define token (make-string 240 #\x))
9(define document
10 (make-document 'chapter "Overlong code line" '()
11 (list (make-code-block "sigil" token loc)) loc))
12(define print-value
13 (make-print-publication "Overlong code line" #f '()
14 (list (make-publication-document "overlong-code" document)) '()))
15(write-file-string (car args) (print-publication->typst print-value))