-
Notifications
You must be signed in to change notification settings - Fork 23
/
Rakefile
30 lines (29 loc) · 1.16 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
require 'html-proofer'
task :test do
sh "bundle exec jekyll build"
opts = {
:check_html => true,
:empty_alt_ignore => true,
:only_4xx => true,
:url_ignore => [
"#",
/^(https?\:\/\/)?doi.acm\.org\/.+$/,
/^(https?\:\/\/)?(www\.)?youtube\.com\/.+$/,
/^https?\:\/\/squeak\.org\/(4|5)0/,
/^(https?\:\/\/)?(shop\.)?spreadshirt\.com\/.+$/,
/^(https?\:\/\/)?(www\.)?twitter\.com\/.+$/,
/^(https?\:\/\/)?(www\.)?kickstarter\.com\/.+$/,
/^(https?\:\/\/)?onlinelibrary.wiley\.com\/.+$/,
/^(https?\:\/\/)?(www\.)?opensource\.org\/.+$/,
/^(https?\:\/\/)?(www\.)?doi\.org\/10\.5381\/jot.+$/,
/^(https?\:\/\/)?(www\.)?doi\.org\/10\.1145\/.+$/,
/^(https?\:\/\/)?(www\.)?portal\.acm\.org\/citation\.cfm.+$/,
/^(https?\:\/\/)?(www\.)?github\.com\/search\?.+$/,
/^(https?\:\/\/)?(www\.)?aidaweb\.si\/.*$/,
/^(https?\:\/\/)?(www\.)?learntechlib\.org\/p\/.+$/ ],
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0 }
}
HTMLProofer.check_directory('./_site', opts).run
end