forked from babel/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRakefile
More file actions
27 lines (25 loc) · 650 Bytes
/
Rakefile
File metadata and controls
27 lines (25 loc) · 650 Bytes
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
require 'html-proofer'
task :test do
sh "bundle exec jekyll build"
HTMLProofer.check_directory("./_site", {
:allow_hash_href => true,
:alt_ignore => [/.+/],
:assume_extension => true,
:check_html => true,
:disable_external => true,
:empty_alt_ignore => true,
:file_ignore => [
%r{/blog/2015/}, # Lots of old/deprecated links, maybe fix/redirect later?
%r{/docs/setup/}, # Duplicate ID generated by headings
%r{/js/repl/}, # REPL
],
:internal_domains => [
"babeljs.io",
],
:only_4xx => true,
:url_swap => {
/\/#.*$/ => "",
},
}).run
end
task :default => :test