scribble/html docs: clarify the effect of 'abs un url-roots

original commit: d168e5953d8001d981458e5ebb0ed0b3fc2669b8
This commit is contained in:
Matthew Flatt 2014-03-05 10:56:03 -07:00
commit 1ef30a5715

View File

@ -454,13 +454,16 @@ for reference. A @racket[#f] value is equivalent to an empty list.
The parameter value is a mapping from path prefixes to URLs (actually, The parameter value is a mapping from path prefixes to URLs (actually,
any string). When two paths have the same prefix, links from one to any string). When two paths have the same prefix, links from one to
the other are relative (unless absolute links are requested); if they the other are relative (unless absolute links are requested); if they
have different prefixes, the URL will be used instead. The roots of have different prefixes, the full URL is used. The paths enclosed by
all paths are expected to be disjoint (e.g., no @racket["/foo"] and two root paths must be disjoint (e.g., the list must not include
@racket["/foo/bar"] roots). both @racket["/colors"] and @racket["/colors/red"], but it can include
both @racket["/colors/red"] and @racket["/colors/blue"]).
If an item in the parameter's list includes @racket['abs], then an If an item in the parameter's list includes @racket['abs], then a
absolute URL is produced for all references to files with the site-local, absolute URL (i.e., a URL that starts with @litchar{/}) is
corresponding prefix. If an item includes @racket['index], then a produced for references among files within the corresponding prefix.
If an item in the parameter's list includes @racket['index], then a
reference to a directory path is converted to a reference to reference to a directory path is converted to a reference to
@filepath{index.html}, otherwise a reference to @filepath{index.html} @filepath{index.html}, otherwise a reference to @filepath{index.html}
is converted to a directory path.} is converted to a directory path.}