We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e65af93 commit 7c64ccfCopy full SHA for 7c64ccf
Makefile
@@ -0,0 +1,21 @@
1
+.DEFAULT_GOAL = test
2
+.PHONY: test validate respec
3
+
4
+VALIDATOR ?= https://validator.w3.org/nu/
5
+VALIDATOR_OPTS ?= -F laxtype=yes -F parser=html5 -F level=error
6
7
+curl = curl -sSLf
8
+respec = respec2html --disable-sandbox -ew
9
10
+out := $(shell mktemp)
11
12
+test: validate respec
13
14
+validate: index.html
15
+ @$(curl) $(VALIDATOR_OPTS) -F out=gnu -F doc=@$< $(VALIDATOR) | sed -e 's/^"$<"/$</g' >$(out)
16
+ @cat $(out)
17
+ @trap 'rm -rf $(out)' EXIT
18
+ @test -z "$(shell cat $(out))"
19
20
+respec: index.html
21
+ @$(respec) -s $< -o /dev/null
validate
0 commit comments