Sha256: b7b57ddb406f0217e8af3a4694326e4e84e392f4252b8101a04f64582864ff0f

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

# encoding: utf-8

usage       'validate-html [options]'
aliases     :validate_html, :vhtml
summary     'validate the site’s HTML'
description <<-EOS
Validates the site’s HTML files.
EOS

module Nanoc::CLI::Commands

  class ValidateHTML < ::Nanoc::CLI::CommandRunner

    def run
      require_site
      validator = ::Nanoc::Extra::Validators::W3C.new(site.config[:output_dir], [ :html ])
      validator.run
    end

  end

end

runner Nanoc::CLI::Commands::ValidateHTML

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nanoc-3.4.3 lib/nanoc/cli/commands/validate-html.rb
nanoc-3.4.2 lib/nanoc/cli/commands/validate-html.rb
nanoc-3.4.1 lib/nanoc/cli/commands/validate-html.rb
nanoc-3.4.0 lib/nanoc/cli/commands/validate-html.rb