Sha256: 2f65c545031f407a1b10fc90bd40f1c2b1355d113094ace01fab100298a8fe94
Contents?: true
Size: 1.6 KB
Versions: 1
Compression:
Stored size: 1.6 KB
Contents
# Nanoc::Checking::Checks::Vnu A [nanoc check][nanoc-check] that validates HTML, CSS, and SVG output files locally with [the Nu Html Checker][vnu] (v.Nu). [nanoc-check]: https://nanoc.ws/doc/testing/ [vnu]: https://validator.github.io/validator/ ## Installation Install v.Nu and place the `vnu` executable on your `PATH`. Add this line to your application's Gemfile: ```ruby gem 'nanoc-checking-checks-vnu' ``` And then execute: $ bundle install Or install it yourself as: $ gem install nanoc-checking-checks-vnu ## Usage Add this line to a Ruby file inside your site's `lib` directory: ```ruby require 'nanoc/checking/checks/vnu' ``` Then execute: $ nanoc check vnu # prefix with `bundle exec` as appropriate You can automatically run this check at deploy time by adding `vnu` to [the `checking` section of `nanoc.yaml`][nanoc-check-deploy]. By default, CSS and SVG files are validated in addition to HTML files. This can be changed by configuring the check in `nanoc.yaml`: ```yaml checks: vnu: also_check_css: no also_check_svg: no ``` You can further disable particular errors by passing a value for the `--filterpattern` option, which takes a regex matching the whole message: ```yaml checks: vnu: filterpattern: '.*color-mix.*' ``` [nanoc-check-deploy]: https://nanoc.ws/doc/testing/#running-checks-before-deploying ## Contributing Bug reports and pull requests are welcome on GitHub at <https://github.com/query/nanoc-checking-checks-vnu>. ## License The gem is available as open source under the terms of the [MIT License][mit]. [mit]: https://opensource.org/licenses/MIT
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-checking-checks-vnu-1.2.0 | README.md |