-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Want to sanity-check the generated nut-website #52
Comments
One promising suggestion was https://github.com/gjtorikian/html-proofer (packaged in Debian in |
Signed-off-by: Jim Klimov <[email protected]>
…te#52] Signed-off-by: Jim Klimov <[email protected]>
…ntroduce "make check-htmlproofer" [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…PROOFER_OPTIONS [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
The HTMLPROOFER found many references to this icon file, unfulfilled. Signed-off-by: Jim Klimov <[email protected]>
…not remote website URL [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
The HTMLPROOFER found many references to this icon file, unfulfilled. Signed-off-by: Jim Klimov <[email protected]>
…ntroduce "make check-htmlproofer" [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…PROOFER_OPTIONS [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
…not remote website URL [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
Signed-off-by: Jim Klimov <[email protected]>
…ROOFER_ENV [networkupstools#52] Signed-off-by: Jim Klimov <[email protected]>
Ran with Many complaints about internal anchored links in Several other documents have their own misnamed(?) anchor links, as well as bad original asciidoc tags pointing to nearby documents (can be good for text browsing, but apparently not for resulting HTML). Selected example complaints (overall there are about 700, although many patterns repeat in different locations):
Note links to
Hordes of apcsmart protocol links in particular:
|
At least some of the "internal hash" issues can be false-positives of the tool, see gjtorikian/html-proofer#819 Also of note: 3.14.x and 3.19.x versions on the Debian 12 and Ubuntu 22 workers tried so far are quite behind the current development (5.0.9 at the moment) which "saved" us from some other false positives but generally constrains available features. Not sure if newer versions have anything about parallel processing performance, but with 3.1x.y ones here I can't get it to happen. FWIW, question posted at gjtorikian/html-proofer#840 |
Custom-building the tool seems possible, but may require a newer ruby ( Ruby custom install per:
This makes the built proffer (and its dependencies) available in user's local shim env:
|
…networkupstools/nut-website#52] Signed-off-by: Jim Klimov <[email protected]>
…le is newer than .git/HEAD [networkupstools/nut-website#52] if test -e .git/HEAD && ( rm -f "`find "$@" -not -newer .git/HEAD`" || true ) 2>/dev/null && ls -la .git/HEAD "$@" 2>/dev/null ; then SKIP ; else WORK ; fi Hopefully this takes care of corner cases: * No .git/HEAD => WORK (may be unsuccessfully, maybe not - e.g. Git submodules referring to parent) * `rm` fails, maybe `find` returns empty => DON'T CARE, go to LS * `ls` fails (one of target files is absent - e.g. ChangeLog removed or never was there) => WORK Only if the ChangeLog is still there after the attempt on its life, SKIP and keep it Signed-off-by: Jim Klimov <[email protected]>
…le is newer than anything in a NUT_GITDIR (may be not "./git/" directly) [networkupstools/nut-website#52] Signed-off-by: Jim Klimov <[email protected]>
…kip/fail decisions [networkupstools/nut-website#52] Signed-off-by: Jim Klimov <[email protected]>
…w that the parent Makefile knows when to slack off [networkupstools/nut-website#52] Signed-off-by: Jim Klimov <[email protected]>
…ectory" with some "test" command implementations [networkupstools/nut-website#52] Some `test`'s evaluate all conditions first and only handle them via boolean logic later. Oh the audacity! Signed-off-by: Jim Klimov <[email protected]>
Posted as a question at https://unix.stackexchange.com/questions/775994/how-to-check-consistency-of-a-generated-web-site-using-recursive-html-parsing
The text was updated successfully, but these errors were encountered: