Created
April 26, 2016 15:17
-
-
Save bbannier/11d8e8fd2e7917c0dd5bed8d0e7d351d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From fe9ab8393c38a454864043a5b70c0c9af5c1baa9 Mon Sep 17 00:00:00 2001 | |
From: Benjamin Bannier <[email protected]> | |
Date: Tue, 26 Apr 2016 16:42:38 +0200 | |
Subject: [PATCH] Site validation. | |
--- | |
site/Gemfile | 4 +++- | |
site/Rakefile | 7 +++++++ | |
2 files changed, 10 insertions(+), 1 deletion(-) | |
diff --git a/site/Gemfile b/site/Gemfile | |
index 14c5034..0b73709 100644 | |
--- a/site/Gemfile | |
+++ b/site/Gemfile | |
@@ -7,4 +7,6 @@ gem 'middleman-blog', '3.5.1' | |
gem "rdiscount", '2.1.7' | |
-gem "htmlentities" | |
\ No newline at end of file | |
+gem "htmlentities" | |
+ | |
+gem 'html-proofer', '2.5.2' | |
diff --git a/site/Rakefile b/site/Rakefile | |
index fbf690f..f9f7a43 100644 | |
--- a/site/Rakefile | |
+++ b/site/Rakefile | |
@@ -1,6 +1,7 @@ | |
require 'rubygems' | |
require 'rake/clean' | |
require 'fileutils' | |
+require 'html/proofer' | |
task :default => [:update_docs, :build, :clean] | |
@@ -86,3 +87,9 @@ desc "Run the site in development mode. Preview available at http://localhost:45 | |
task :dev do | |
system("middleman server") | |
end | |
+ | |
+desc "Validate the generate HTML." | |
+task :validate do | |
+ # HTMLProofer.check_directory(["./publish"]).run | |
+ system("bundle exec htmlproof --disable-external --check-html ./publish") | |
+end | |
-- | |
2.8.1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment