make scribble' (and
raco scribble') use a `doc' submodule when present
original commit: f60803c300e5c208d80b8e2567a2622f114758b5
This commit is contained in:
parent
e2578af0ef
commit
9097b87aca
|
@ -105,7 +105,11 @@
|
|||
(current-quiet #t)]
|
||||
#:args (file . another-file)
|
||||
(let ([files (cons file another-file)])
|
||||
(build-docs (map (lambda (file) (dynamic-require `(file ,file) 'doc))
|
||||
(build-docs (map (lambda (file)
|
||||
;; Try `doc' submodule, first:
|
||||
(if (module-declared? `(submod (file ,file) doc) #t)
|
||||
(dynamic-require `(submod (file ,file) doc) 'doc)
|
||||
(dynamic-require `(file ,file) 'doc)))
|
||||
files)
|
||||
files))))
|
||||
|
||||
|
|
|
@ -51,9 +51,16 @@ flag to specify a destination directory (for any number of source
|
|||
files). Use @DFlag{dest-base} to add a prefix to the name of each
|
||||
support file that is generated or copied to the destination.
|
||||
|
||||
After all flags, provide one or more document sources. When multiple
|
||||
documents are rendered at the same time, cross-reference information
|
||||
in one document is visible to the other documents. See
|
||||
After all flags, provide one or more document sources, where each
|
||||
source declares a module. The module should either have a @racket[doc]
|
||||
@tech[#:doc '(lib "scribblings/reference/reference.scrbl")]{submodule}
|
||||
that exports @racket[doc] as a @racket[part], or it should directly
|
||||
export @racket[doc] as a @racket[part]. (The submodule is tried first,
|
||||
and the main module is not directly loaded or evaluated if the
|
||||
submodule can be loaded on its own.)
|
||||
|
||||
When multiple documents are rendered at the same time, cross-reference
|
||||
information in one document is visible to the other documents. See
|
||||
@secref["xref-flags"] for information on references that cross
|
||||
documents that are built separately.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user