
This changed make `(require scribble/manual)` work in an executable, although actually rendering documents requires the "scribble" collection. original commit: 9ca0aa52250c18dd05c2a19bea654ca770aecf0c
26 lines
898 B
Racket
26 lines
898 B
Racket
#lang scheme/base
|
|
(require scribble/core
|
|
scribble/html-properties
|
|
"defaults.rkt"
|
|
"on-demand.rkt")
|
|
|
|
(provide post-process
|
|
manual-doc-style)
|
|
|
|
(define (post-process doc)
|
|
(add-defaults doc
|
|
(scribble-file "manual-prefix.tex")
|
|
(scribble-file "manual-style.tex")
|
|
null
|
|
#:html (html-defaults (scribble-file "scribble-prefix.html")
|
|
(scribble-file "manual-style.css")
|
|
(list
|
|
(scribble-file "manual-fonts.css")))
|
|
#:properties (list
|
|
(css-style-addition
|
|
(scribble-file "manual-racket.css")))
|
|
#t))
|
|
|
|
(define-on-demand manual-doc-style
|
|
(part-style (post-process (part #f null #f plain null null null))))
|