2021-01-10 17:12:49 +00:00
|
|
|
set -e
|
|
|
|
startdir=$PWD
|
|
|
|
for file in tests/fixtures/*
|
|
|
|
do
|
|
|
|
cd "$startdir/$file"
|
2021-01-14 05:36:29 +00:00
|
|
|
mkdocs -v build
|
2021-01-10 17:12:49 +00:00
|
|
|
# unfortunately MkDocs writes the run date in the last few lines of index:
|
|
|
|
head -n -3 site/index.html > site/croppedindex.html
|
|
|
|
rm site/index.html
|
|
|
|
diff -r -x img -x fonts -x js -x '*.xml*' refsite site
|
|
|
|
echo "Site in $file built successfully"
|
|
|
|
rm -r site
|
|
|
|
done
|
|
|
|
echo "All site tests passed."
|