1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 13:44:15 +00:00

Added HTML-Proofer.

This commit is contained in:
Cotes Chung
2019-12-23 02:35:58 +08:00
parent 77a47c4b62
commit d5f2895047
3 changed files with 22 additions and 1 deletions

View File

@@ -17,7 +17,10 @@ if [[ $TRAVIS_PULL_REQUEST = "false" ]]; then # triggered by author
else # triggered by Pull Request
SAFE_DOMAIN=cdn.jsdelivr.net
bundle install --path vendor/bundle --quiet
python _scripts/py/init_all.py
build_cmd="JEKYLL_ENV=production bundle exec jekyll build"
@@ -25,4 +28,11 @@ else # triggered by Pull Request
echo "\$ $build_cmd"
eval $build_cmd
bundle exec htmlproofer --disable-external \
--check-html \
--empty_alt_ignore \
--allow_hash_href \
--url_ignore $SAFE_DOMAIN \
_site/
fi