Description
As confirmed during issue #1957 investigation, we can generate documentation entries intended to be cross-linked (within the present set of documents) with such links leading nowhere in fact, e.g. if some anchors were planned but forgotten, lost in refactoring, mis-typed or with wrong markup so not recognized, etc.
This issue is about somehow (using asciidoc itself? parsing the HTMLs/PDFs?) determining that documentation links which should lead to targets in the same codebase (not absolute URLs) in fact lead nowhere, and making it a fatal problem for automated builds eventually.
Feels related to #823 (fightwarn in C/C++ code) :)
For examples currently online, a generated wrong link for "A.2.2 ups: General unit information -> ups.status -> OL" looks like this:
- in PDF:
https://networkupstools.org/docs/developer-guide.pdf#[0,{%22name%22:%22Fit%22}]
- in HTML:
https://networkupstools.org/docs/developer-guide.chunked/index.html
For comparison, a nearby link to "NUT daisychain support notes" looks like this:
- in PDF:
https://networkupstools.org/docs/developer-guide.pdf#daisychain
- in HTML:
https://networkupstools.org/docs/developer-guide.chunked/apb.html