This repository has been archived by the owner on Jul 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Lars Marowsky-Bree <[email protected]>
- Loading branch information
Showing
4 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,7 @@ group :jekyll_plugins do | |
gem "kramdown", ">= 2.3.0" | ||
gem "rake" | ||
end | ||
|
||
group :test do | ||
gem 'html-proofer' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
abort('Please run this using `bundle exec rake`') unless ENV["BUNDLE_BIN_PATH"] | ||
require 'html-proofer' | ||
|
||
desc "Test the website" | ||
task :test do | ||
sh "bundle exec jekyll build" | ||
options = { | ||
:check_sri => true, | ||
:check_external_hash => true, | ||
:check_html => true, | ||
:check_img_http => true, | ||
:check_opengraph => true, | ||
:enforce_https => true, | ||
:cache => { | ||
:timeframe => '6w' | ||
} | ||
} | ||
begin | ||
HTMLProofer.check_directory("_site/", options).run | ||
rescue => msg | ||
puts "#{msg}" | ||
end | ||
end | ||
|
||
task :default => [:test] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters