forked from aquarist-labs/aquarist-labs.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
34 lines (32 loc) · 820 Bytes
/
Rakefile
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
28
29
30
31
32
33
34
abort('Please run this using `bundle exec rake`') unless ENV["BUNDLE_BIN_PATH"]
require 'html-proofer'
desc "Test the website"
task :test do
sh "bundle exec jekyll build"
options = {
:check_sri => true,
:check_external_hash => false,
:check_favicon => false,
:check_html => true,
:check_img_http => true,
:check_opengraph => true,
:enforce_https => true,
:cache => {
:timeframe => '6w'
},
:validation => {
:report_eof_tags => true,
:report_invalid_tags => true,
:report_mismatched_tags => true,
:report_missing_doctype => true,
:report_missing_names => true,
:report_script_embeds => true
}
}
begin
HTMLProofer.check_directory("_site/", options).run
rescue => msg
puts "#{msg}"
end
end
task :default => [:test]