We could probably automate with a new command sherlodoc index-odig (or just sherlodoc odig?.. or some phrasing around "current opam switch")
odig odoc could be ran automatically (?)
the SHERLODOC_DB could default to $OPAM_SWITCH_PREFIX/var/cache/sherlodoc.<DB_FORMAT> (with a smart default on the db format, depending on if ancient is installed)
and finally the indexing could discover the odig generated odocl files without the need for users to spell out the find command
(... ideally the sherlodoc search command would then tap the current switch SHERLODOC_DB if the flag / env var wasn't explicitly set)
The commands required to index the current switch with odig are a mouthful:
We could probably automate with a new command
sherlodoc index-odig
(or justsherlodoc odig
?.. or some phrasing around "current opam switch")odig odoc
could be ran automatically (?)SHERLODOC_DB
could default to$OPAM_SWITCH_PREFIX/var/cache/sherlodoc.<DB_FORMAT>
(with a smart default on the db format, depending on ifancient
is installed)find
command(... ideally the
sherlodoc search
command would then tap the current switchSHERLODOC_DB
if the flag / env var wasn't explicitly set)