From 77a46f46c7eca49bb0c04d1c8ac97a0222b18a9f Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Fri, 8 Sep 2017 12:35:18 -0700 Subject: [PATCH] Add doc examples for @author and @author+email --- scribble-doc/scribblings/scribble/base.scrbl | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/scribble-doc/scribblings/scribble/base.scrbl b/scribble-doc/scribblings/scribble/base.scrbl index 1231ca53..79c702e3 100644 --- a/scribble-doc/scribblings/scribble/base.scrbl +++ b/scribble-doc/scribblings/scribble/base.scrbl @@ -130,7 +130,14 @@ Generates a @racket[paragraph] with style name @racket['author] to show the author(s) of a document, where each author is represented by @tech{content}. Normally, this function is used after @racket[title] for the beginning of a document. See also -@racket[author+email].} +@racket[author+email]. + +Examples: + +@codeblock[#:keep-lang-line? #f]|{ + #lang scribble/base + @author{Alice P. Racketeer} +}|} @defproc[(author+email [author-name content?] [email string?] @@ -143,7 +150,14 @@ address-harvesting robots. Note that @racket[author+email] is not a replacement for @racket[author]. The @racket[author+email] function is often used in -combination with @racket[author].} +combination with @racket[author]. + +Examples: + +@codeblock[#:keep-lang-line? #f]|{ + #lang scribble/base + @author[(author+email "Bob T. Scribbler" "bob@racket-lang.org")] +}|} @; ------------------------------------------------------------------------