diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-04 01:44:58 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-04 01:44:58 +0000 |
commit | 03bb1ebec513de779908af110c46e16b9c882673 (patch) | |
tree | 4df5643c61501de1b8e4101746e324a183042262 /railties/lib | |
parent | e4094e23f9e3740599e9eaac527fbef86ff4b4c4 (diff) | |
download | rails-03bb1ebec513de779908af110c46e16b9c882673.tar.gz rails-03bb1ebec513de779908af110c46e16b9c882673.tar.bz2 rails-03bb1ebec513de779908af110c46e16b9c882673.zip |
Convert the guides from asciidoc to textile and integrate with the new design.
If you're a guide writer and want to generate the guides, Run :
ruby railties/guides/rails_guides.rb
And guides HTML will get generated inside railties/guides/output directory.
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/tasks/documentation.rake | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/railties/lib/tasks/documentation.rake b/railties/lib/tasks/documentation.rake index 6caf69ccd3..8b41478a93 100644 --- a/railties/lib/tasks/documentation.rake +++ b/railties/lib/tasks/documentation.rake @@ -54,15 +54,8 @@ namespace :doc do desc "Generate Rails guides" task :guides do - source = File.join(RAILTIES_PATH, "doc/guides") - destination = File.join(RAILS_ROOT, "doc/guides") - FileUtils.rm_r(destination) if File.directory?(destination) - FileUtils.mkdir(destination) - - FileUtils.cp_r File.join(source, 'html/.'), File.join(destination) - # Copy images and css files to html directory. These dirs are in .gitigore and shouldn't be source controlled. - FileUtils.cp_r File.join(source, 'source/images'), File.join(destination) - FileUtils.cp_r File.join(source, 'source/stylesheets'), File.join(destination, 'stylesheets') + require File.join(RAILTIES_PATH, "guides/rails_guides") + RailsGuides::Generator.new(File.join(RAILS_ROOT, "doc/guides")).generate end namespace :plugins do |