as indicated in Generating Documentation — Dune documentation. It says that the generated documentation should be in _build/default/_doc/_html/<library> but it doesn’t say what <library> is. I would assume it is the library name from the dune file, but it is not: instead of the expected _build/default/_doc/_html/lib, my doc is in _build/default/_doc/_html/lib@5a6fo525np6/Lib (actually, it’s another seemingly random string of digits and lowercase letters).
As a consequence, some hyperlinks are broken in the generated html pages: they point to files which suppose a _html/Lib pattern instead of the _html/lib@5a6fo525np6/Lib one.
Should I provide some more information? I gave the content of the files bin/dune and lib/dune in my initial post, and here is the structure of my project:
Actually, the generated doc/lib@5c80a786e2f7/Lib/index.html also expects something like the latter tree structure (but still with the name lib@5c80a786e2f7 instead of Lib). Indeed, the link for “Up – lib@5c80a786e2f7 » Lib” on that page points to doc/lib@5c80a786e2f7/index.html, which is a dead link (the page is at doc/lib@5c80a786e2f7/Lib/index.html).