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 -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/20200724101549.c4%40sirmail.smtp.cs.utah.edu.

