We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949f157 commit ffc2ea2Copy full SHA for ffc2ea2
Gemfile
@@ -3,3 +3,4 @@ gem 'jekyll'
3
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
4
gem 'rake'
5
gem 'rake-jekyll'
6
+gem 'html-proofer'
Rakefile
@@ -1,5 +1,6 @@
1
require 'time'
2
require 'rake-jekyll'
+require 'html/proofer'
desc 'create a new draft post'
task :new do
@@ -30,5 +31,11 @@ end
30
31
32
33
Rake::Jekyll::GitDeployTask.new(:deploy) do |t|
- 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
+ }
41
end
0 commit comments