AtlatestRepositorysigil-doc
1
(import (sigil core) (sigil fs) (sigil shell) (sigil doc) (sigil doc publication)2
(sigil doc print) (sigil doc render typst))4
(define args (script-args))5
(unless (= (length args) 1)6
(error "usage: build-d6-highlight.sgl OUTPUT.typ"))7
(define loc (make-srcloc "highlight.sgd" 1 1 0 1))8
(define source9
"; comment color witness\n(define message \"string color witness\")\n(if #t 7391 0)")10
(define document11
(make-document 'chapter "Offline syntax highlighting" '()12
(list (make-code-block "sigil" source loc)) loc))13
(define print-value14
(make-print-publication "Offline syntax highlighting" #f '()15
(list (make-publication-document "offline-highlighting" document)) '()))16
(write-file-string (car args) (print-publication->typst print-value))