-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Rakefile
50 lines (46 loc) · 994 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
require 'html-proofer'
options = {
:assume_extension => true,
:alt_ignore => [ /.*/ ],
# only in _site !
:file_ignore => [
/.*js\/*/,
/.*images\/*/,
/.*contrib\/images\/*/,
/.*fonts\/*/,
/.*google*/,
/.*code\/*/,
/.*txt/,
/.*rc/,
/.*pl/,
/.*pub/,
/.*gv/,
/.*sh/,
/.*gv/,
/.*ico/,
/.*xml/,
/Rakefile/,
],
:log_level => :debug,
:checks_to_ignore => [
"ImageCheck",
"ScriptCheck"
],
:http_status_ignore => [
"429"
],
:cache => {
:timeframe => '12w',
:storage_dir => ENV["HOME"] + "/.cache/htmlproofer"
},
:only_4xx => true,
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0
}
}
task :default do
sh "jekyll build"
sh "mkdir -p _site/code/; touch _site/code/index.html"
HTMLProofer.check_directory("./_site/", options).run
end