Sha256: 2a959ab3509fc6cf3ef81159e090eba9089bdfb1ad3a029c90fb8013ef21a822

Contents?: true

Size: 470 Bytes

Versions: 4

Compression:

Stored size: 470 Bytes

Contents

# encoding: utf-8

usage       'validate-css [options]'
aliases     :validate_css, :vcss
summary     'validate the site’s CSS'
description <<-EOS
Validates the site’s CSS files.
EOS

module Nanoc::CLI::Commands

  class ValidateCSS < ::Nanoc::CLI::CommandRunner

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

  end

end

runner Nanoc::CLI::Commands::ValidateCSS

Version data entries

4 entries across 4 versions & 1 rubygems

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