forked from mattcone/markdown-guide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
21 lines (21 loc) · 794 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'html-proofer'
# rake test
desc "build and test website"
task :test do
sh "bundle exec jekyll build"
HTMLProofer.check_directory("./_site", {
:assume_extension => true,
:check_favicon => true,
:external_only => true,
:only_4xx => true,
:url_ignore => ['https://ghost.org/',
'https://ghost.org/faq/using-the-editor/#using-markdown',
'https://get.todoist.help/hc/en-us/articles/205195102',
'https://twitter.com/settermjd/status/1126099562345705472',
'https://twitter.com/datamorgan/status/1109518506125451264'],
:url_swap => { %r{https://www.markdownguide.org} => '' },
:typhoeus => {
:ssl_verifypeer => false,
:ssl_verifyhost => 0},
verbose => true}).run
end