commit a1748186a30cad70348586d6cecf9d025c047539
parent 316a99fb569010a7e7b8da0f4810485547cfe1f6
Author: Matthew Flatt <mflatt@racket-lang.org>
Date: Fri, 6 Jun 2008 21:21:04 +0000
doc #:doc for 'techlink'
svn: r10184
original commit: b5ce45a15c0341ede1dc02895a2d6951f8f30c2e
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/collects/scribblings/scribble/manual.scrbl b/collects/scribblings/scribble/manual.scrbl
@@ -838,12 +838,15 @@ These normalization steps help support natural-language references
that differ slightly from a defined form. For example, a definition of
``bananas'' can be referenced with a use of ``banana''.}
-@defproc[(tech [pre-content any/c] ...) element?]{
+@defproc[(tech [pre-content any/c] ...
+ [#:doc module-path (or/c module-path? false/c) #f])
+ element?]{
Produces an element for the @tech{decode}d @scheme[pre-content], and
hyperlinks it to the definition of the content as established by
@scheme[deftech]. The content's string form is normalized in the same
-way as for @scheme[deftech].
+way as for @scheme[deftech]. The @scheme[#:doc] argument supports
+cross-document referecnes, like in @scheme[secref].
The hyperlink is relatively quiet, in that underlining in HTML output
appears only when the mouse is moved over the term.
@@ -854,7 +857,9 @@ normalization performed on the term. For example, if ``bind'' is
defined, but a sentence uses the term ``binding,'' the latter can be
linked to the former using @schemefont["@tech{bind}ing"].}
-@defproc[(techlink [pre-content any/c] ...) element?]{
+@defproc[(techlink [pre-content any/c] ...
+ [#:doc module-path (or/c module-path? false/c) #f])
+ element?]{
Like @scheme[tech], but the link is not a quiet. For example, in HTML
output, a hyperlink underline appears even when the mouse is not over