tadded a script to check wheter the blog is valid or not - monochromatic - monochromatic blog: http://blog.z3bra.org
HTML git clone git://z3bra.org/monochromatic
DIR Log
DIR Files
DIR Refs
---
DIR commit fddb015040046c761a7eb282e326d2493b6411da
DIR parent fc70524428185c55e5099949f5e623b50978ae5d
HTML Author: Willy Goiffon <w.goiffon@gmail.com>
Date: Fri, 9 Aug 2013 13:14:45 +0200
added a script to check wheter the blog is valid or not
Diffstat:
A check.sh | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)
---
DIR diff --git a/check.sh b/check.sh
t@@ -0,0 +1,25 @@
+#!/bin/bash
+
+http=http://validator.w3.org/check
+uri=blog.z3bra.org
+charset=utf-8
+doctype=Inline
+profile=css3
+
+
+check="${http}?uri=${uri}&charset=${charset}&$doctype=${doctype}"
+
+if [[ -n "$(curl -s "$check" | grep -o 'Passed')" ]]; then
+ echo -e "\033[1;32mHTML validated!\033[0m"
+else
+ echo -e "\033[1;31mHTML not valid!\033[0m\ncheck $check"
+fi
+
+http=http://jigsaw.w3.org/css-validator/validator
+check="${http}?uri=${uri}&profile=${profile}"
+
+if [[ -n "$(curl -s "$check" | grep -o 'No Error')" ]]; then
+ echo -e "\033[1;32mCSS validated!\033[0m"
+else
+ echo -e "\033[1;31mCSS not valid!\033[0m\ncheck $check"
+fi