mkdocs-semiliterate/tests/sites.bash
Glen Whitney 5a1f9e044a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
refactor: Adjust to latest commit of simple plugin
Now reiterates significantly less code from the simple plugin. Also, adjusted
  the default for extract_standard_markdown when copy_standard_markdown is true.
2021-01-13 21:36:29 -08:00

15 lines
409 B
Bash

set -e
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:
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."