-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
26 lines (24 loc) · 1.01 KB
/
Rakefile
File metadata and controls
26 lines (24 loc) · 1.01 KB
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
require 'html-proofer'
task :test do
sh "bundle exec jekyll build"
options = { :assume_extension => true,
:file_ignore => [%r"/geocities",
%r"/medium/"],
# https://github.com/gjtorikian/html-proofer#configuring-caching
:cache => { :timeframe => '30d' },
# Frequent false positives for some reason
:check_external_hash => false,
:check_html => true,
# Suckers bet. I can't fix all the world's broken links.
:disable_external => true,
:enforce_https => true,
:alt_ignore => ['/images/donquixote.gif'],
:url_ignore => ['http://chadwick-bureau.com/',
'http://chadwick.sourceforge.net/doc/cwevent.html',
'http://chadwick.sourceforge.net/doc/cwtools.html'],
}
HTMLProofer.check_directory("./_site", options).run
end
task "assets:precompile" do
exec("jekyll build")
end