Skip to content

Commit ffc2ea2

Browse files
committed
adds html-proofer to build process
1 parent 949f157 commit ffc2ea2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ gem 'jekyll'
33
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
44
gem 'rake'
55
gem 'rake-jekyll'
6+
gem 'html-proofer'

Rakefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require 'time'
22
require 'rake-jekyll'
3+
require 'html/proofer'
34

45
desc 'create a new draft post'
56
task :new do
@@ -30,5 +31,11 @@ end
3031

3132

3233
Rake::Jekyll::GitDeployTask.new(:deploy) do |t|
33-
t.deploy_branch = 'master'
34+
t.deploy_branch = 'master'
35+
36+
# Run this command to build the site.
37+
t.jekyll_build = ->(dest_dir) {
38+
Rake.sh "bundle exec jekyll build --destination #{dest_dir}"
39+
HTML::Proofer.new(dest_dir).run
40+
}
3441
end

0 commit comments

Comments
 (0)