forked from istio/istio.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
21 lines (20 loc) · 806 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'html-proofer'
task :test do
sh "bundle exec jekyll build --incremental"
typhoeus_configuration = {
:timeout => 30,
# :verbose => true
}
options = { :check_html => true,
# :validation => { :report_missing_names => true, :report_invalid_tags => true },
:cache => { :timeframe => '2d'},
:enforce_https => false, # we should turn this on eventually
:directory_index_file => "index.html",
:check_external_hash => false,
:assume_extension => true,
# :log_level => :debug,
:url_ignore => [/localhost|github\.com\/istio\/istio\.github\.io\/edit\/master\//],
:typhoeus => typhoeus_configuration,
}
HTMLProofer.check_directory("./_site", options).run
end