forked from SORSE/sorse.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
23 lines (21 loc) · 839 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
require 'html-proofer' # https://github.com/gjtorikian/html-proofer/
task default: %w[test]
task :test do
sh "bundle exec jekyll build"
options = { :assume_extension => true,
:allow_hash_href => true,
file_ignore: [/assets\/js\/add-to-calendar-button/],
url_ignore: [
/twitter.com/,
/www.turing.ac.uk/,
/www.linkedin.com/,
/www.wtfpl.net/,
/www.nhsx.nhs.uk\/media\/documents\/NHSX_A_Buyers_Guide_to_AI_in_Health_and_Care.pdf/,
/www.ncl.ac.uk\/press\/articles\/archive\/2018\/11\/fintrust/,
],
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0}
}
HTMLProofer.check_directory("./_site", options).run
end