Skip to content

Commit

Permalink
Switch to grunt-html over grunt-html-validation.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo authored and XhmikosR committed Feb 2, 2015
1 parent 33d8fde commit 73b5076
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
21 changes: 8 additions & 13 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,21 +325,16 @@ module.exports = function (grunt) {
}
},

validation: {
htmllint: {
options: {
charset: 'utf-8',
doctype: 'HTML5',
failHard: true,
reset: true,
relaxerror: [
'Element img is missing required attribute src.',
'Attribute autocomplete not allowed on element input at this point.',
'Attribute autocomplete not allowed on element button at this point.'
ignore: [
'Attribute "autocomplete" not allowed on element "button" at this point.',
'Attribute "autocomplete" not allowed on element "input" at this point.',
'Bad value "X-UA-Compatible" for attribute "http-equiv" on element "meta".',
'Element "img" is missing required attribute "src".'
]
},
files: {
src: '_gh_pages/**/*.html'
}
src: '_gh_pages/**/*.html'
},

watch: {
Expand Down Expand Up @@ -414,7 +409,7 @@ module.exports = function (grunt) {
require('time-grunt')(grunt);

// Docs HTML validation task
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);

var runSubset = function (subset) {
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"grunt-contrib-watch": "~0.6.1",
"grunt-csscomb": "~3.0.0",
"grunt-exec": "~0.4.6",
"grunt-html-validation": "~0.1.18",
"grunt-html": "~2.0.0",
"grunt-jekyll": "~0.4.2",
"grunt-jscs": "~1.2.0",
"grunt-saucelabs": "~8.5.0",
Expand Down

0 comments on commit 73b5076

Please sign in to comment.