-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
37 lines (30 loc) · 879 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
30
31
32
33
34
35
36
37
require 'html-proofer'
desc 'Clean up generated site'
task :clean do
sh 'rm -rf _site'
end
task :test do
sh 'bundle exec jekyll build --quiet --config _config.yml'
ignored_links = []
# internal
ignored_links.push(%r{https?://github\.com/})
ignored_links.push(%r{https?://github\.github\.io/})
# external
ignored_links.push(%r{https?://(.+?.)gitter\.im})
ignored_links.push(%r{https?://jekyllthemes\.io})
ignored_links.push(%r{https?://mademistakes\.com})
ignored_links.push(%r{https?://(www.)taniarascia\.com})
HTMLProofer.check_directory('./_site', {
:check_opengraph => true,
:check_html => true,
:empty_alt_ignore => true,
:url_ignore => ignored_links,
:connecttimeout => 600,
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0,
:followlocation => true
}
}).run
end
task default: :test