From bc9c6d6fb590ab714790c8b199d9b4b2b9e270c8 Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Mon, 6 Jan 2020 19:38:01 +0100 Subject: Add html-proofer checks --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 6609c0e..404e661 100644 --- a/Rakefile +++ b/Rakefile @@ -1,4 +1,5 @@ require 'jekyll' +require 'html-proofer' task :default => [:buildsite] @@ -19,6 +20,12 @@ task :clean do Jekyll::Commands::Clean.process({}) end +desc 'Test the site using html-proofer' +task :testsite => [:buildsite] do + options = { :assume_extension => true, :disable_external => true } + HTMLProofer.check_directory("./_site", options).run +end + namespace :deploy do desc "Deploy via SSH" task :ssh => [:buildsite] do -- cgit v1.2.3