Standalone (batch- and command-line) and Gradle-plugin html sanity checker - detects missing images, dead links and cross-references, duplicate link targets (anchors) and the like.
Question: Is the generated HTML Sanity Check report of the project serving as an example how the checker finds/reports issues?
The report is tagged as "Demo-Report":
In this case, please ignore this issue.
Found issues
However, the report currently contains a lot of issues.
These can be categorized into
The missing PDF links are probably false positives.
PDFs are generated (by dtcw generatePdf) to build/pdf.
Links to PDFs in the arc42 documentation are generated relatively, e.g., to ../pdf/arc42/hsc_arc42.pdf.
Later everything is copied to public/output and then published as GH pages.
Thereby different levels of generated output is merged to the same directory tree level in public/output, e.g., build/microsite/output/arc42 becoming public/output/arc42.
Hence, the resulting/published HTMLs finally contain correct links to the PDFs.
However, the dtcw htmlSanityCheck is executed on the build/microsite directory.
Therefore the PDFs cannot be found and the check contains errors.
Question: Is the generated HTML Sanity Check report of the project serving as an example how the checker finds/reports issues? The report is tagged as "Demo-Report":
In this case, please ignore this issue.
Found issues
However, the report currently contains a lot of issues. These can be categorized into
Check for missing PDFs?
The missing PDF links are probably false positives. PDFs are generated (by
dtcw generatePdf
) tobuild/pdf
. Links to PDFs in the arc42 documentation are generated relatively, e.g., to../pdf/arc42/hsc_arc42.pdf
. Later everything is copied topublic/output
and then published as GH pages. Thereby different levels of generated output is merged to the same directory tree level inpublic/output
, e.g.,build/microsite/output/arc42
becomingpublic/output/arc42
. Hence, the resulting/published HTMLs finally contain correct links to the PDFs. However, thedtcw htmlSanityCheck
is executed on thebuild/microsite
directory. Therefore the PDFs cannot be found and the check contains errors.