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

github.com/twbs/ratchet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2015-03-03 19:44:59 +0300
committerXhmikosR <xhmikosr@gmail.com>2015-03-05 11:34:11 +0300
commitc603c413d1e94310f3254203a4dea34c7ccf9950 (patch)
treef801805c7b053f476106cd3cf22326a0b96d7693 /Gruntfile.js
parentea65f13d3eea566e2d233ab791e0ab11affd68bb (diff)
Switch to "grunt-html" for validating docs.
It requires Java installed, but it's faster.
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js18
1 files changed, 6 insertions, 12 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 8e1fffd..2c190f3 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -298,20 +298,14 @@ module.exports = function (grunt) {
}
},
- validation: {
+ htmllint: {
options: {
- charset: 'utf-8',
- doctype: 'HTML5',
- failHard: true,
- reset: true,
- relaxerror: [
- 'Attribute ontouchstart not allowed on element body at this point.',
- 'Consider using the h1 element as a top-level heading only \\(all h1 elements are treated as top-level headings by many screen readers and other tools\\)\\.'
+ ignore: [
+ 'Attribute "ontouchstart" not allowed on element "body" at this point.',
+ 'Consider using the "h1" element as a top-level heading only (all "h1" elements are treated as top-level headings by many screen readers and other tools).'
]
},
- files: {
- src: '_site/**/*.html'
- }
+ src: '_site/**/*.html'
},
sed: {
@@ -346,7 +340,7 @@ module.exports = function (grunt) {
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'usebanner', 'csscomb', 'cssmin']);
grunt.registerTask('dist-js', ['concat', 'uglify']);
grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'copy', 'build-ratchicons-data']);
- grunt.registerTask('validate-html', ['jekyll', 'validation']);
+ grunt.registerTask('validate-html', ['jekyll', 'htmllint']);
grunt.registerTask('build', ['dist']);
grunt.registerTask('default', ['dist']);
grunt.registerTask('test', ['dist', 'csslint', 'jshint', 'jscs', 'validate-html']);