art-w / sherlodoc

Fuzzy type search for OCaml documentation
MIT License
70 stars 6 forks source link

Links to Stdlib values are broken #43

Open muzimuzhi opened 2 weeks ago

muzimuzhi commented 2 weeks ago

For example, fst has

val Stdlib.fst : ('a * 'b) -> 'a

on the top of search result list, but the link added to Stdlib.fst is missing the Stdlib right before .html.

It seems all links to values documented in https://ocaml.org/manual/5.1/api/Stdlib.html have the same problem.

However links to values documented in standard library modules are alright, for example List.map shows Stdlib.List.map correctly linked to https://v2.ocaml.org/releases/5.1/api/List.html#VALmap.

art-w commented 2 weeks ago

Oh that's the shame, thanks for the report! (I like your profile description :D )

In case someone has time to look into this before I do this weekend, we have a bunch of hacks to link to the stdlib as it has different urls than odoc: https://github.com/art-w/sherlodoc/blob/master/db/entry.ml#L90