Hi Joel,
At Tue, 21 Jul 2020 09:25:03 -0700 (PDT), "'Joel Dueck' via Racket Users" wrote:
> It looks like the problem might be in this function
> <
https://github.com/racket/scribble/blob/master/scribble-lib/scribble/html-rend
> er.rkt#L440-L459>
> where it always constructs a path that is relative to (find-doc-dir).
>
> Would it make sense instead to have it check the dest against all the paths
> returned by (get-doc-search-dirs) and just use the first one that matches?
> If so maybe I’ll try doing a pull request to that effect.
I don't think that specific approach is going to work. Packages
installed in user scope render documentation within the collections'
directories, and those directories are not included in the result of
`(get-doc-search-dirs)`.
A solution might use something like `path->pkg+subpath+collect+scope`,
where a 'user result for the scope triggers a different path
calculation. For user-scope packages, ocumentation is rendered within
the collection in a "doc" subdirectory, instead of in a common "doc"
directory. Probably the content of the individual "doc" directories
mirrors the main "doc" directory, in which case the relative-path
calculation would be the same, but I may have forgotten a difference.
Matthew