lib/nanoc3/tasks/validate.rake in nanoc3-3.1.0 vs lib/nanoc3/tasks/validate.rake in nanoc3-3.1.1
- old
+ new
@@ -1,10 +1,10 @@
# encoding: utf-8
namespace :validate do
- desc 'Validate the site\'s HTML files'
+ desc 'Validate the site’s HTML files'.make_compatible_with_env
task :html do
# Get output directory
site = Nanoc3::Site.new('.')
if site.nil?
$stderr.puts 'The current working directory does not seem to be a ' +
@@ -16,11 +16,11 @@
# Validate
validator = ::Nanoc3::Extra::Validators::W3C.new(dir, [ :html ])
validator.run
end
- desc 'Validate the site\'s CSS files'
+ desc 'Validate the site’s CSS files'.make_compatible_with_env
task :css do
# Get output directory
site = Nanoc3::Site.new('.')
if site.nil?
$stderr.puts 'The current working directory does not seem to be a ' +
@@ -34,11 +34,11 @@
validator.run
end
namespace :links do
- desc 'Validate the site’s internal links'
+ desc 'Validate the site’s internal links'.make_compatible_with_env
task :internal do
# Get output directory
site = Nanoc3::Site.new('.')
if site.nil?
$stderr.puts 'The current working directory does not seem to be a ' +
@@ -51,11 +51,11 @@
# Validate
validator = ::Nanoc3::Extra::Validators::Links.new(dir, index_filenames, :internal => true)
validator.run
end
- desc 'Validate the site’s internal links'
+ desc 'Validate the site’s internal links'.make_compatible_with_env
task :external do
# Get output directory
site = Nanoc3::Site.new('.')
if site.nil?
$stderr.puts 'The current working directory does not seem to be a ' +
@@ -70,10 +70,10 @@
validator.run
end
end
- desc 'Validate the site’s internal and external links'
+ desc 'Validate the site’s internal and external links'.make_compatible_with_env
task :links do
# Get output directory
site = Nanoc3::Site.new('.')
if site.nil?
$stderr.puts 'The current working directory does not seem to be a ' +