Low commit activity in last 3 years
No release in over a year
A nanoc check for validating HTML, CSS, and SVG files with the v.Nu validator.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Nanoc::Checking::Checks::Vnu

A nanoc check that validates HTML, CSS, and SVG output files locally with the Nu Html Checker (v.Nu).

Installation

Install v.Nu and place the vnu executable on your PATH.

Add this line to your application's Gemfile:

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:

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. By default, CSS and SVG files are validated in addition to HTML files. This can be changed by configuring the check in nanoc.yaml:

checks:
  vnu:
    also_check_css: no
    also_check_svg: no

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.