diff --git a/pkgs/racket-pkgs/racket-doc/scribblings/raco/setup.scrbl b/pkgs/racket-pkgs/racket-doc/scribblings/raco/setup.scrbl index d351177f31..24d31b1726 100644 --- a/pkgs/racket-pkgs/racket-doc/scribblings/raco/setup.scrbl +++ b/pkgs/racket-pkgs/racket-doc/scribblings/raco/setup.scrbl @@ -1513,8 +1513,9 @@ back to a path relative to @racket[(find-collects-dir)].} is an absolute one that is inside the @filepath{collects} tree, the result is a string that begins with @racket["/"]. Similarly, a path in the user-specific collects results in a prefix of - @racket["/"], and a @PLaneT path results in - @racket["/"]. + @racket["/"], a @PLaneT path results in + @racket["/"], and a path into documentation results in + @racket["/"] or @racket["/"]. If @racket[cache] is not @racket[#f], it is used as a cache argument for @racket[pkg->path] to speed up detection and conversion of diff --git a/racket/collects/setup/path-to-relative.rkt b/racket/collects/setup/path-to-relative.rkt index a70c613d71..605653520b 100644 --- a/racket/collects/setup/path-to-relative.rkt +++ b/racket/collects/setup/path-to-relative.rkt @@ -53,7 +53,9 @@ (make-path->relative-string (list (cons find-collects-dir "/") (cons find-user-collects-dir "/") - (cons find-planet-dir "/")))) + (cons find-planet-dir "/") + (cons find-doc-dir "/") + (cons find-user-doc-dir "/")))) (define (make-default cache default) (lambda (x) (define-values (pkg sub) (if (complete-path? x)