-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathRakefile
47 lines (44 loc) · 1.11 KB
/
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
require "bundler/setup"
require "html-proofer"
task :proof do
puts "Doing jekyll build ..."
sh "bundle exec jekyll build"
puts "Doing html-proofer ..."
options = {
:allow_missing_href => true,
:cache => {
:timeframe => {
:external => "6w"
}
},
:typhoeus => {
:connecttimeout => 20,
:timeout => 60
},
:hydra => {
:max_concurrency => 1 # default: 200
},
:ignore_urls => [
/dev\.folio\.org/,
/localhost:/,
/folio-org\/jenkins-pipeline-libs/,
/folio-org-priv\/folio-infrastructure/,
/folio-snapshot-okapi\.dev/,
/folio-snapshot-test.*\/settings/,
/#mod-vendors/,
/twitter\.com/,
/github\.com\/search/,
/github\.com\/pulls\/review-requested/,
# ignore github. 429 rate-limit error. FOLIO-2597
/github\.com\/folio-org/,
# old versions of projectwide-navbar
/folio\.org\/customization-hosting/,
]
}
HTMLProofer.check_directory("./_site", options).run
end
task :doctor do
puts "Doing jekyll doctor ..."
sh 'bundle exec jekyll doctor'
end
task :default => [:proof]