aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorJaime Iniesta <jaimeiniesta@gmail.com>2010-05-24 18:07:08 +0200
committerJaime Iniesta <jaimeiniesta@gmail.com>2010-05-24 18:07:08 +0200
commit7db557f1520b2c2c60958e67c049ff424f61cbf1 (patch)
treee81ccd27b5fad98000a21c5a8d846c4ba4f51083 /railties/Rakefile
parent0244b43ecdf1aee9dac328b0e828156b579d9ada (diff)
downloadrails-7db557f1520b2c2c60958e67c049ff424f61cbf1.tar.gz
rails-7db557f1520b2c2c60958e67c049ff424f61cbf1.tar.bz2
rails-7db557f1520b2c2c60958e67c049ff424f61cbf1.zip
New rake validate_guides task to validate output/*.html against the W3C Validator
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index daffd8ce30..efdb31cbd8 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -50,6 +50,12 @@ task :update_prototype_ujs do
system "curl http://github.com/rails/prototype-ujs/raw/master/src/rails.js > lib/rails/generators/rails/app/templates/public/javascripts/rails.js"
end
+# Validate guides -------------------------------------------------------------------------
+desc 'Validate guides, use ONLY=foo to process just "foo.html"'
+task :validate_guides do
+ ruby "guides/w3c_validator.rb"
+end
+
# Generate documentation ------------------------------------------------------------------
Rake::RDocTask.new { |rdoc|