From f95798c7b5bf1a9839f3b4ff244073d4480f33ec Mon Sep 17 00:00:00 2001 From: Matthias Felleisen Date: Sat, 28 Apr 2012 13:19:09 -0400 Subject: [PATCH] use deprecated from manual for teachpacks --- collects/teachpack/htdp/scribblings/draw.scrbl | 7 ++++--- collects/teachpack/htdp/scribblings/image.scrbl | 4 ++-- collects/teachpack/htdp/scribblings/world.scrbl | 16 +++------------- 3 files changed, 9 insertions(+), 18 deletions(-) diff --git a/collects/teachpack/htdp/scribblings/draw.scrbl b/collects/teachpack/htdp/scribblings/draw.scrbl index 258e218af4..98c6b0a41e 100644 --- a/collects/teachpack/htdp/scribblings/draw.scrbl +++ b/collects/teachpack/htdp/scribblings/draw.scrbl @@ -11,9 +11,10 @@ The teachpack provides two sets of functions: one for drawing into a canvas and one for reacting to canvas events. -@bold{Warning:} @emph{This teachpack is deprecated. Unless you're solving exercises -taken from @emph{How To Design Programs}, we strongly encourage -you to use the world teachpack instead; see @secref{world}.} +@deprecated[(list @racketmodname[2htdp/image] " (probably in conjunction with " @racketmodname[2htdp/universe] ")")]{ + You may continue to use the library for solving exercises + from @emph{How To Design Programs, First Edition} but do consider + switching to @link["http://www.ccs.neu.edu/home/matthias/HtDP2e/"]{How To Design Programs, Second Edition} instead.} @section[#:tag "drawing"]{Drawing on a Canvas} diff --git a/collects/teachpack/htdp/scribblings/image.scrbl b/collects/teachpack/htdp/scribblings/image.scrbl index c6a82ede91..5272a31dbc 100644 --- a/collects/teachpack/htdp/scribblings/image.scrbl +++ b/collects/teachpack/htdp/scribblings/image.scrbl @@ -6,8 +6,8 @@ @defmodule[#:require-form beginner-require htdp/image] -@italic{This teachpack is deprecated. Please use @racketmodname[2htdp/image] for -any new code.} +@deprecated[@racketmodname[2htdp/image]]{For the foreseeable time, we will + continue to support the teachpack for your existing programs.} The teachpack provides functions for constructing and manipulating images. Basic, colored images are created as outlines or solid diff --git a/collects/teachpack/htdp/scribblings/world.scrbl b/collects/teachpack/htdp/scribblings/world.scrbl index 995298bbc7..5eacbbc7b7 100644 --- a/collects/teachpack/htdp/scribblings/world.scrbl +++ b/collects/teachpack/htdp/scribblings/world.scrbl @@ -12,19 +12,9 @@ @defmodule[#:require-form beginner-require htdp/world #:use-sources (htdp/image)] -@(make-table (make-with-attributes 'centered - `((cellspacing . "6") - (height . "600") - (width . "70%"))) - (list (list (list (make-paragraph - (list "This teachpack is deprecated. Use " - (racketmodname 2htdp/universe) - " instead. See the" - " " (secref "htdp-port" - #:tag-prefixes '("2htdp") - ;#:doc '(lib "teachpack/teachpack.scrbl") - ) - " section for information on how to adapt old code to the new teachpack.")))))) +@deprecated[@racketmodname[2htdp/universe]]{ + For guidance on how to convert your @racketmodname[htdp/world] programs + to use @racketmodname[2htdp/universe], see @secref[#:tag-prefixes '("2htdp")]{htdp-port}} @emph{Note}: For a quick and educational introduction to the teachpack, see @link["http://www.ccs.neu.edu/home/matthias/HtDP/Prologue/book.html"]{How