diff --git a/Rakefile b/Rakefile index d9e9e7ac6ea..707ecdd97aa 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,6 @@ +load 'yasslab/Rakefile' +return + # frozen_string_literal: true require "net/http" @@ -70,5 +73,3 @@ task :publish_docs do puts response.body end end - -load 'yasslab/Rakefile' diff --git a/yasslab/Rakefile b/yasslab/Rakefile index 3eb964cece1..a96d3e90aae 100644 --- a/yasslab/Rakefile +++ b/yasslab/Rakefile @@ -21,15 +21,19 @@ end # cf. http://joenyland.me/blog/how_to_test_a_jekyll_site/ require 'html-proofer' task test: [:build] do - HTML::Proofer.new('./_site', { - check_opengraph: true, - check_favicon: true, - check_html: true, - disable_external: true, - file_ignore: %w(), - url_ignore: %w(), - http_status_ignore: [0, 500, 999], - }).run + HTMLProofer.check_directory('./_site', { + allow_hash_href: true, + check_opengraph: true, + check_favicon: true, + check_html: true, + disable_external: true, + file_ignore: [ + /._._release_notes\.html/, + "./_site/humanx.txt" + ], + url_ignore: %w(), + http_status_ignore: [0, 500, 999], + }).run end task build: [:clean] do