aboutsummaryrefslogtreecommitdiff
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-12 21:30:57 -0700
committerMark Otto <[email protected]>2013-08-12 21:30:57 -0700
commit8aecfb4e3f7661b8df9145e6b20f9b555fbf8cd0 (patch)
tree9bdf81715ff8846f9d881774d7fd046e92c5752c /Gruntfile.js
parent49576704ea6c24fbc4cb32f44c5986a1e7714634 (diff)
parentf111c3e763b4a3e10efe0da4e41cd5b4847a2b74 (diff)
downloadbootstrap-8aecfb4e3f7661b8df9145e6b20f9b555fbf8cd0.tar.xz
bootstrap-8aecfb4e3f7661b8df9145e6b20f9b555fbf8cd0.zip
Merge pull request #9396 from twbs/docs-html-validation
add HTML5 validation of docs pages to the build
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js20
1 files changed, 19 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index c15b4ad11..576c63741 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -102,6 +102,19 @@ module.exports = function(grunt) {
}
},
+ jekyll: {
+ docs: {}
+ },
+
+ validation: {
+ options: {
+ reset: true,
+ },
+ files: {
+ src: ["_gh_pages/**/*.html"]
+ }
+ },
+
watch: {
src: {
files: '<%= jshint.src.src %>',
@@ -127,12 +140,17 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-html-validation');
+ grunt.loadNpmTasks('grunt-jekyll');
grunt.loadNpmTasks('grunt-recess');
grunt.loadNpmTasks('browserstack-runner');
+ // Docs HTML validation task
+ grunt.registerTask('validate-docs', ['jekyll', 'validation']);
+
// Test task.
- var testSubtasks = ['jshint', 'qunit'];
+ var testSubtasks = ['jshint', 'qunit', 'validate-docs'];
// Only run BrowserStack tests under Travis
if (process.env.TRAVIS) {
// Only run BrowserStack tests if this is a mainline commit in twbs/bootstrap, or you have your own BrowserStack key