Glen Whitney
b4a49b67b8
All checks were successful
continuous-integration/drone Build is passing
Also updates from pep517.build to the `build` package, and bumps the semiliterate version number. Resolves #14.
20 lines
604 B
Bash
20 lines
604 B
Bash
set -e
|
|
shopt -s globstar
|
|
startdir=$PWD
|
|
for file in tests/fixtures/*
|
|
do
|
|
cd "$startdir/$file"
|
|
mkdocs -v build
|
|
# unfortunately MkDocs writes the run date in the last few lines of index
|
|
# and has version numbers in some of the scripts that are irrelevant:
|
|
for hml in **/*.html
|
|
do
|
|
grep -v MkDocs.version $hml | grep -v Build.Date.UTC | grep -v '[</]script[ >]' | grep -v '[</]link' > "$hml.cropped"
|
|
rm $hml
|
|
done
|
|
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."
|