Skip to content

Commit

Permalink
Separate Rakefiles used by rails/rails and yasslab/railsguides.jp
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Jan 1, 2019
1 parent c5934ad commit 650b3f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
load 'yasslab/Rakefile'
return

# frozen_string_literal: true

require "net/http"
Expand Down Expand Up @@ -70,5 +73,3 @@ task :publish_docs do
puts response.body
end
end

load 'yasslab/Rakefile'
22 changes: 13 additions & 9 deletions yasslab/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 650b3f3

Please sign in to comment.