Revision c9346ef522230e02520e75a53c226c5a75b342b6 authored by jekyllbot on 12 April 2018, 16:56:48 UTC, committed by jekyllbot on 12 April 2018, 16:56:48 UTC
1 parent 8f78afe
proof
#!/usr/bin/env bash
#
# Usage:
# script/proof
set -e
function msg {
printf "\e[0;37m==> $1\e[0m\n"
}
IGNORE_HREFS=$(ruby -e 'puts %w{
Chrononaut
twitter.com
nearlyfreespeech.net
eduardoboucas.com
github.com\/matrix9180
}.map{|h| "/#{h}/"}.join(",")')
SOURCE="docs"
DESTINATION="_site"
export PROOF=true
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
# 1.
msg "Installing..."
bundle install -j8 > /dev/null || bundle install > /dev/null
# 2.
msg "Building..."
bundle exec jekyll build -s $SOURCE -d $DESTINATION --trace
# 3.
msg "Proofing..."
time bundle exec htmlproofer ./$DESTINATION --allow-hash-href --url-ignore $IGNORE_HREFS $@
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...