diff --git a/.gitignore b/.gitignore index c0baf81..1ccc2ba 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .jekyll-metadata _site Gemfile.lock +vendor diff --git a/_config.yml b/_config.yml index 36065b5..87e289d 100644 --- a/_config.yml +++ b/_config.yml @@ -11,6 +11,7 @@ exclude: - node_modules - _submodules - script + - vendor sass: style: :compressed diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000..33a4d47 --- /dev/null +++ b/script/bootstrap @@ -0,0 +1,12 @@ +#!/bin/sh + +set -e +export CC=gcc + +echo "==> Installing gem dependencies…" +bundle check --path vendor/gems 2>&1 > /dev/null || { + time bundle install --binstubs bin --path vendor/gems +} + +echo "==> Getting submodule for docs…" +git submodule update --init diff --git a/script/build b/script/build new file mode 100755 index 0000000..2bb2977 --- /dev/null +++ b/script/build @@ -0,0 +1,3 @@ +#!/bin/sh +echo "==> Building the site…" +bundle exec jekyll build $@ diff --git a/script/html-proofer b/script/html-proofer index 576d7c9..9b960cf 100755 --- a/script/html-proofer +++ b/script/html-proofer @@ -3,13 +3,17 @@ require "bundler/setup" require "html-proofer" +# add links to ignore here url_ignores = [ - # add links to ignore here + # Installation links require being signed in to GitHub + %r{https://github.com/apps/.*/installations/new}, ] HTMLProofer::Runner.new(["_site"], :type => :directory, :url_ignore => url_ignores, + :file_ignore => [%r{_site/api/}], :verbose => !!ENV["VERBOSE"], - :check_html => true + :check_html => true, + :empty_alt_ignore => true ).run diff --git a/script/test b/script/test new file mode 100755 index 0000000..6a65159 --- /dev/null +++ b/script/test @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +script/build +script/html-proofer