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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user