generated from mmistakes/mm-github-pages-starter
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Rakefile
25 lines (23 loc) · 937 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
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/,
/zenodo.org\/badge\/DOI\/10.5281\/zenodo..*.svg/,
/localhost/
],
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0}
}
HTMLProofer.check_directory("./_site", options).run
end