From 40d917c9b3a4c0457b90b03a60c9b7eaa9e07e4f Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 7 Oct 2009 11:10:32 -0400 Subject: [PATCH] add validation to build process (better late than never) --- publish | 5 +++++ regular-expressions.html | 1 - util/validate.py | 17 +++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 util/validate.py diff --git a/publish b/publish index 6fc7cbd..603c870 100755 --- a/publish +++ b/publish @@ -25,6 +25,11 @@ rm -f examples/*.pyc cp -R examples build/ cp .htaccess build/ +echo "validating HTML" +for f in *.html; do + python3 util/validate.py "$f" > /dev/null || die "Failed to validate $f" +done + echo "building HTML distribution" htmlbasedir=diveintopython3-r"$revision"-"$today" htmldir=build/"$htmlbasedir" diff --git a/regular-expressions.html b/regular-expressions.html index f384049..5be0d59 100755 --- a/regular-expressions.html +++ b/regular-expressions.html @@ -84,7 +84,6 @@ body{counter-reset:h1 5}

The following are some general rules for constructing Roman numerals: