summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authoruvok cheetah2020-01-06 19:38:01 +0100
committeruvok cheetah2020-01-06 19:38:01 +0100
commitbc9c6d6fb590ab714790c8b199d9b4b2b9e270c8 (patch)
treeb956bc1f1686a0f200b59b9e98aa315c21ffdaf3 /Rakefile
parent508cdd60025756546409e70206a96a4c7af59ba2 (diff)
Add html-proofer checks
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 7 insertions, 0 deletions
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