forked from gjreda/void
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (25 loc) · 717 Bytes
/
Rakefile
File metadata and controls
27 lines (25 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# encoding: utf-8
require "rubygems"
require "bundler/gem_tasks"
require "html-proofer"
task :test do
sh "gem list -i '^html-proofer$' || gem install html-proofer"
sh "rm -Rf ./_site"
sh "bundle exec jekyll build"
options = {
:ignore_urls => ['/getskeleton.com/'],
:only_4xx => true,
:allow_hash_href => true,
# :assume_extension => true, # error on html-proofer's part
:check_opengraph => true,
:check_favicon => true,
:trace => true,
:empty_alt_ignore => true,
:check_html => true,
:enforce_https => false,
:error_sort => :path,
:log_level => :info,
:verbose => true
}
HTMLProofer.check_directory("./_site", options).run
end