commit: f8f963463000ea36cd0c36e7505e678b14395315 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Sat Feb 27 15:41:28 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Sat Feb 27 15:41:28 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f8f96346
Makefile: Suppress spurious tidy warnings tidy-html5 complains about empty URI references in href which are perfectly valid HTML: https://tools.ietf.org/html/std66#section-4.4 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 618b190..5d74d88 100644 --- a/Makefile +++ b/Makefile @@ -92,7 +92,8 @@ validate: tidy: $(HTMLS) $(ECLASS_HTMLS) @status=0; \ for f in $^; do \ - output=$$(tidy -q -errors --drop-empty-elements no $${f} 2>&1) \ + output=$$(sed 's/href=""/href="index.html"/' $${f} \ + | tidy -q -errors --drop-empty-elements no 2>&1) \ || { status=$$?; echo "Failed on $${f}:"; echo "$${output}"; }; \ done; \ test $${status} -eq 0 && echo "tidy validation successful"; \
