Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2015-01-20 02:18:06 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-02-02 05:36:13 +0300
commit73b50769d894182d1fa9c540fb1cc30cc666e170 (patch)
treea5b14b47a8b83502b8a21c53b6874f9698f0bac3 /Gruntfile.js
parent33d8fde67cf9db663cc85b3990944109c5dcbe47 (diff)
Switch to grunt-html over grunt-html-validation.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js21
1 files changed, 8 insertions, 13 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index daa63a5923..761e7089b9 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -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: {
@@ -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;