From ff0ef6d21247387eb4a3a431047338f2ee44547f Mon Sep 17 00:00:00 2001 From: Sam Whited Date: Thu, 1 Dec 2016 14:19:03 -0600 Subject: [PATCH] Check for external resources in CI Fixes #212 --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index ecdee8e5..912ea129 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,9 @@ $(OUTDIR)/%.html: %.xml $(XMLDEPS) dependencies # TODO: After existing issues are worked out this and the ratcheting CI build # should be removed and become an error, not just a warning. xmllint --nonet --noout --noent --loaddtd --valid "$<" || true + # Check for non-data URIs + ! xmllint --nonet --noout --noent --loaddtd --xpath "//img/@src[not(starts-with(., 'data:'))]" $< 2>/dev/null && true + # Actually build the HTML xsltproc --path $(CURDIR) xep.xsl "$<" > "$@" && echo "Finished building $@" $(OUTDIR)/%.js: %.js