Skip to content

Instantly share code, notes, and snippets.

@nsbingham
Created June 30, 2015 15:08
Show Gist options
  • Save nsbingham/81b6519469109685ee4a to your computer and use it in GitHub Desktop.
Save nsbingham/81b6519469109685ee4a to your computer and use it in GitHub Desktop.
Jekyll/HTML Proofer Rakefile
# https://github.com/gjtorikian/html-proofer
# Add `gem 'html-proofer'` to your Gemfile
# Run `bundle`
# Create a file named `Rakefile`
# Paste the code below in it
# Run `rake test` from the commandline. Issues will be reported.
require 'html/proofer'
task :test do
sh "bundle exec jekyll build"
HTML::Proofer.new("./_site", { :check_favicon => true, :check_html => true }).run
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment