mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-18 10:52:19 +01:00
Switch to grunt-html over grunt-html-validation.
This commit is contained in:
parent
33d8fde67c
commit
73b50769d8
19
Gruntfile.js
19
Gruntfile.js
@ -325,21 +325,16 @@ module.exports = function (grunt) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
validation: {
|
htmllint: {
|
||||||
options: {
|
options: {
|
||||||
charset: 'utf-8',
|
ignore: [
|
||||||
doctype: 'HTML5',
|
'Attribute "autocomplete" not allowed on element "button" at this point.',
|
||||||
failHard: true,
|
'Attribute "autocomplete" not allowed on element "input" at this point.',
|
||||||
reset: true,
|
'Bad value "X-UA-Compatible" for attribute "http-equiv" on element "meta".',
|
||||||
relaxerror: [
|
'Element "img" is missing required attribute "src".'
|
||||||
'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.'
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
files: {
|
|
||||||
src: '_gh_pages/**/*.html'
|
src: '_gh_pages/**/*.html'
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
@ -414,7 +409,7 @@ module.exports = function (grunt) {
|
|||||||
require('time-grunt')(grunt);
|
require('time-grunt')(grunt);
|
||||||
|
|
||||||
// Docs HTML validation task
|
// Docs HTML validation task
|
||||||
grunt.registerTask('validate-html', ['jekyll:docs', 'validation']);
|
grunt.registerTask('validate-html', ['jekyll:docs', 'htmllint']);
|
||||||
|
|
||||||
var runSubset = function (subset) {
|
var runSubset = function (subset) {
|
||||||
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
|
return !process.env.TWBS_TEST || process.env.TWBS_TEST === subset;
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
"grunt-contrib-watch": "~0.6.1",
|
"grunt-contrib-watch": "~0.6.1",
|
||||||
"grunt-csscomb": "~3.0.0",
|
"grunt-csscomb": "~3.0.0",
|
||||||
"grunt-exec": "~0.4.6",
|
"grunt-exec": "~0.4.6",
|
||||||
"grunt-html-validation": "~0.1.18",
|
"grunt-html": "~2.0.0",
|
||||||
"grunt-jekyll": "~0.4.2",
|
"grunt-jekyll": "~0.4.2",
|
||||||
"grunt-jscs": "~1.2.0",
|
"grunt-jscs": "~1.2.0",
|
||||||
"grunt-saucelabs": "~8.5.0",
|
"grunt-saucelabs": "~8.5.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user