Skip to content

Commit 90a6183

Browse files
author
Pablo O Vieira
committed
HTML Proofer config/fix
1 parent 775d270 commit 90a6183

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Rakefile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
#!/usr/bin/env ruby
22

3-
require 'html/proofer'
3+
require 'html-proofer'
44

55
def html_proofer
6-
puts "HTML Proofer version: #{HTML::Proofer::VERSION}"
7-
HTML::Proofer.new("./_site", {
8-
:href_ignore => ["#"],
9-
:url_ignore => [/linkedin\.com/],
10-
#:disable_external => true
6+
puts "HTML Proofer version: #{HTMLProofer::VERSION}"
7+
HTMLProofer.check_directory("./_site", {
8+
:allow_hash_href => true,
9+
:http_status_ignore => [999] # LinkedIn returning 999
1110
}).run
1211
end
1312

@@ -18,6 +17,6 @@ task :test do
1817
html_proofer
1918
end
2019

21-
task :serve do
20+
task :serve_local do
2221
sh "bundle exec jekyll serve --config _config.yml,_config_local.yml"
2322
end

0 commit comments

Comments
 (0)