From f4f3354466b339ec62c5f5e138acc97beae99d6d Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Thu, 21 Jul 2016 13:50:01 -0400 Subject: [PATCH] Add doc examples for history form --- .../scribblings/scribble/manual.scrbl | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/scribble-doc/scribblings/scribble/manual.scrbl b/scribble-doc/scribblings/scribble/manual.scrbl index 07c3c962..31af1260 100644 --- a/scribble-doc/scribblings/scribble/manual.scrbl +++ b/scribble-doc/scribblings/scribble/manual.scrbl @@ -1949,6 +1949,28 @@ produced by @racket[content-expr] should normally start with a capital letter and end with a period, but it can be a sentence fragment such as ``Added a @racket[#:changed] form.'' +Examples: +@codeblock[#:keep-lang-line? #f]|{ +#lang scribble/manual +@defthing[tasty-burrito burrito?]{ + Compatible with the API of a sandwich, but not legally a + sandwich in Massachusetts. + + @history[#:added "1.0" + #:changed "1.1" "Refactored tortilla." + #:changed "1.2" @elem{Now includes @emph{guacamole}.}] +} +}| +@doc-render-examples[ + @defthing[tasty-burrito burrito?]{ + Compatible with the API of a sandwich, but not legally a + sandwich in Massachusetts. + + @history[#:added "1.0" + #:changed "1.1" "Refactored tortilla." + #:changed "1.2" @elem{Now includes @emph{guacamole}.}] +}] + @history[#:added "1.1"]} @; ------------------------------------------------------------------------