[plt-scheme] Scribble doc referring to another Scribble doc

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Tue May 25 08:21:38 EDT 2010

A documented is identified by its main module. So, instead of

 '(lib "teachpack/2htdp/scribblings/2htdp.scrbl")

use

 '(lib "teachpack/teachpack.scrbl")


At Tue, 25 May 2010 06:51:46 -0400, Stephen Bloch wrote:
> How do I put a hot-link in a Scribble document to another (standard, bundled) 
> Scribble document?
> 
> There's an example in the doc that looks like
> @secref[#:doc '(lib "scribblings/reference/reference.scrbl") "concurrency"]
> or
> @seclink[#:doc '(lib "scribblings/reference/reference.scrbl") "concurrency" 
> "dummy link"]
> which both work: they produce perfectly good HTML hotlinks.
> 
> But when I try to extend that analogy to a different library, like
> @secref[#:doc '(lib "teachpack/2htdp/scribblings/2htdp.scrbl") "image"],
> @secref[#:doc '(lib "teachpack/2htdp/scribblings/2htdp.scrbl") "universe"],
> @seclink[#:doc '(lib "teachpack/2htdp/scribblings/2htdp.scrbl") "image" "the 
> image teachpack"], or
> @seclink[#:doc '(lib "teachpack/2htdp/scribblings/2htdp.scrbl") "universe" 
> "the universe teachpack"],
> the generated HTML code looks like
> <font class="badlink">(part ("(lib teachpack/2htdp/scribblings/2htdp.scrbl)" 
> "image"))</font>
> or, at best,
> <font class="badlink">the image teachpack</font>.
> 
> Stephen Bloch
> sbloch at adelphi.edu
> _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme


Posted on the users mailing list.