From 3be44b5e0e224ad2d19f5af479de58680ee905fa Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 3 Dec 2022 20:09:08 -0500 Subject: assets: Add schemas House keeping guardrails --- Makefile | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f438eb9..b952bf2 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ server: test: make test-html make test-xsl + make test-xml + make test-rss + make test-jsonfeed test-html: validatornu \ @@ -31,12 +34,23 @@ test-html: public/default/index.html test-css: - validatornu --css \ - assets/css/default.css + validatornu --css \ + assets/css/default.css test-xsl: - xsltproc \ - public/rss.xsl + xsltproc \ + public/rss.xsl + +test-xml: + xmllint --noout \ + public/rss.xml + +test-rss: + xmllint --noout --relaxng assets/schemas/rss-v2.0.rng public/rss.xml +# xmllint --noout --schema assets/schemas/rss-v2.0.xsd public/rss.xml + +test-jsonfeed: + check-jsonschema --schemafile assets/schemas/jsonfeed-v1.1.json public/index.json icons: rm -rf static/icons -- cgit v1.2.3