aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-03 20:09:08 -0500
committertdro <tdro@noreply.example.com>2022-12-03 20:09:08 -0500
commit3be44b5e0e224ad2d19f5af479de58680ee905fa (patch)
tree7647b99bf960318ff13e42383a5962052f9187c6 /Makefile
parentd27acd8bb3bdbfa1c8a70b76592f9c39eed18810 (diff)
downloadcanory-3be44b5e0e224ad2d19f5af479de58680ee905fa.tar.gz
canory-3be44b5e0e224ad2d19f5af479de58680ee905fa.tar.bz2
canory-3be44b5e0e224ad2d19f5af479de58680ee905fa.zip
assets: Add schemas
House keeping guardrails
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 18 insertions, 4 deletions
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