diff options
author | uvok cheetah | 2020-01-06 19:38:01 +0100 |
---|---|---|
committer | uvok cheetah | 2020-01-06 19:38:01 +0100 |
commit | bc9c6d6fb590ab714790c8b199d9b4b2b9e270c8 (patch) | |
tree | b956bc1f1686a0f200b59b9e98aa315c21ffdaf3 | |
parent | 508cdd60025756546409e70206a96a4c7af59ba2 (diff) |
Add html-proofer checks
-rw-r--r-- | Gemfile | 7 | ||||
-rw-r--r-- | Gemfile.lock | 21 | ||||
-rw-r--r-- | Rakefile | 7 |
3 files changed, 30 insertions, 5 deletions
@@ -3,12 +3,10 @@ source "https://rubygems.org" -git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } - -# gem "rails" +gem "rake", "~> 13.0" +gem "html-proofer", "~> 3.15" gem "jekyll", "~> 3.8" - gem "minima", "~> 2.0" group :jekyll_plugins do @@ -19,4 +17,3 @@ group :jekyll_plugins do gem 'jekyll-compose', '~> 0.12.0' end -gem "rake", "~> 13.0" diff --git a/Gemfile.lock b/Gemfile.lock index bccf81a..1390801 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,9 +8,19 @@ GEM em-websocket (0.5.1) eventmachine (>= 0.12.9) http_parser.rb (~> 0.6.0) + ethon (0.12.0) + ffi (>= 1.3.0) eventmachine (1.2.7) ffi (1.11.3) forwardable-extended (2.6.0) + html-proofer (3.15.0) + addressable (~> 2.3) + mercenary (~> 0.3) + nokogumbo (~> 2.0) + parallel (~> 1.3) + rainbow (~> 3.0) + typhoeus (~> 1.3) + yell (~> 2.0) htmlbeautifier (1.3.1) htmlcompressor (0.4.0) http_parser.rb (0.6.0) @@ -53,13 +63,20 @@ GEM rb-fsevent (~> 0.10, >= 0.10.3) rb-inotify (~> 0.9, >= 0.9.10) mercenary (0.3.6) + mini_portile2 (2.4.0) minima (2.5.1) jekyll (>= 3.5, < 5.0) jekyll-feed (~> 0.9) jekyll-seo-tag (~> 2.1) + nokogiri (1.10.7) + mini_portile2 (~> 2.4.0) + nokogumbo (2.0.2) + nokogiri (~> 1.8, >= 1.8.4) + parallel (1.19.1) pathutil (0.16.2) forwardable-extended (~> 2.6) public_suffix (4.0.2) + rainbow (3.0.0) rake (13.0.1) rb-fsevent (0.10.3) rb-inotify (0.10.1) @@ -71,11 +88,15 @@ GEM sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) + typhoeus (1.3.1) + ethon (>= 0.9.0) + yell (2.2.0) PLATFORMS ruby DEPENDENCIES + html-proofer (~> 3.15) jekyll (~> 3.8) jekyll-compose (~> 0.12.0) jekyll-feed (~> 0.6) @@ -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 |