scribble/lp2: declare doc
submodule with module*
Using `module*` allows the documentation submodule to refer to the implementation module.
This commit is contained in:
parent
668e3799bd
commit
f09604f097
|
@ -62,7 +62,16 @@ submodule, which is recognized by tools such as @exec{raco scribble}.
|
||||||
The content of the @racket[chunk] and @racket[CHUNK] forms is
|
The content of the @racket[chunk] and @racket[CHUNK] forms is
|
||||||
stitched together as the immediate content of the module.
|
stitched together as the immediate content of the module.
|
||||||
|
|
||||||
@history[#:added "1.8"]
|
The @racket[chunk] and @racket[CHUNK] content is discovered by first
|
||||||
|
@racket[expand]ing the module as written. The content is collected
|
||||||
|
into a new module, and then the original module content is placed into
|
||||||
|
a @racket[doc] submodule that is expanded (so that the content is
|
||||||
|
effectively re-expanded). The @racketidfont{doc} submodule is declared
|
||||||
|
with @racket[module*].
|
||||||
|
|
||||||
|
@history[#:added "1.8"
|
||||||
|
#:changed "1.17" @elem{Declared the @racketidfont{doc} submodule with
|
||||||
|
@racket[module*] instead of @racket[module].}]
|
||||||
|
|
||||||
@defform[(chunk id form ...)]{
|
@defform[(chunk id form ...)]{
|
||||||
|
|
||||||
|
|
|
@ -23,4 +23,4 @@
|
||||||
|
|
||||||
(define pkg-authors '(mflatt eli))
|
(define pkg-authors '(mflatt eli))
|
||||||
|
|
||||||
(define version "1.16")
|
(define version "1.17")
|
||||||
|
|
|
@ -101,7 +101,7 @@
|
||||||
(begin body0 . body)))])
|
(begin body0 . body)))])
|
||||||
(syntax-case submod ()
|
(syntax-case submod ()
|
||||||
[(_ . rest)
|
[(_ . rest)
|
||||||
(datum->syntax submod (cons #'module #'rest))])))
|
(datum->syntax submod (cons #'module* #'rest))])))
|
||||||
'())))]))]))
|
'())))]))]))
|
||||||
|
|
||||||
(define-syntax module-begin/plain (make-module-begin #f))
|
(define-syntax module-begin/plain (make-module-begin #f))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user