-
-
Notifications
You must be signed in to change notification settings - Fork 141
/
Rakefile
29 lines (26 loc) · 741 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
require "rake"
task default: :build
desc "Build the site."
task :build do
sh "bundle exec jekyll build"
end
desc "Run html proofer to validate the HTML output."
task test: :build do
require "html-proofer"
HTMLProofer.check_directory(
"./_site",
parallel: { in_threads: 4 },
ignore_status_codes: [0, 302, 303, 429, 521],
check_external_hash: true,
checks: ['Links', 'Images', 'Scripts', 'Favicon', 'OpenGraph'],
allow_missing_href: true,
ignore_urls: [
"https://formulae.brew.sh/",
"https://github.com/search",
"https://hackerone.com/homebrew",
"https://www.patreon.com/homebrew",
%r{^https://twitter\.com/},
%r{^https://github\.com/Homebrew/brew.+},
]
).run
end