Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 29 lines (25 sloc) 1.05 KB
#!/bin/bash
set -e # halt script on error
HTMLPROOFER_OPTIONS="./_site --internal-domains=sips.synthetix.io --check-html --check-opengraph --report-missing-names --log-level=:debug --assume-extension --empty-alt-ignore --timeframe=6w --url-ignore=/SIPS/sip-1,/SCCP/sccp-1,/SCCP/sccp-2"
if [[ $TASK = 'htmlproofer' ]]; then
bundle exec jekyll doctor
bundle exec jekyll build
bundle exec htmlproofer $HTMLPROOFER_OPTIONS --disable-external
# Validate GH Pages DNS setup
bundle exec github-pages health-check
elif [[ $TASK = 'htmlproofer-external' ]]; then
bundle exec jekyll doctor
bundle exec jekyll build
bundle exec htmlproofer $HTMLPROOFER_OPTIONS --external_only
elif [[ $TASK = 'sip-validator' ]]; then
BAD_FILES="$(ls SIPS | egrep -v "sip-[0-9]+.md")" || true
if [[ ! -z $BAD_FILES ]]; then
echo "Files found with invalid names:"
echo $BAD_FILES
exit 1
fi
FILES="$(ls SIPS/*.md | egrep "sip-[0-9]+.md")"
bundle exec sip_validator $FILES
elif [[ $TASK = 'codespell' ]]; then
codespell -q4 -I .codespell-whitelist sip-X.md SIPS/
fi
You can’t perform that action at this time.