diff --git a/README.md b/README.md index 4ed3fa07c4d7a9cf16acd0bea14b271fcecd63b0..c446d94fd85e9ccc4626de00d8ca906f20f6fdf1 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ hugo server -D --enableGitInfo Generate static hugo pages: ``` -hugo --enableGitInfo +./build.py ``` ## Content Types diff --git a/build.py b/build.py new file mode 100755 index 0000000000000000000000000000000000000000..ab1194d627b4dd308ea7dfc4b7826baf512600c9 --- /dev/null +++ b/build.py @@ -0,0 +1,22 @@ +#!/usr/bin/python +import os +import sys +import requests + +os.system('hugo --enableGitInfo --cleanDestinationDir') + +exit = 0 +url = 'https://validator.w3.org/feed/check.cgi' +payload = {'url': 'https://briarproject.org/index.xml'} + +r = requests.get(url, params=payload) + +if "This is a valid Atom 1.0 feed" not in r.content: + print "ATOM feed is not valid." + exit = 1 +else: + print "-- This is a valid Atom 1.0 feed -- %s" % payload.get('url') + +#print r.content + +sys.exit(exit)