diff options
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 1a6c51991d..08a5d1797f 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -272,14 +272,19 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.include('lib/commands/**/*.rb') } +# In this array, one defines the guides for which HTML output should be +# generated. Specify the folder names of the guides. If the .txt filename +# doesn't equal its folder name, then specify a hash: { 'folder_name' => 'filename.txt' } guides = [ 'securing_rails_applications', 'testing_rails_applications', 'creating_plugins', + 'migrations', { 'routing' => 'routing_outside_in' }, { 'debugging' => 'debugging_rails_applications' } ] -guides_html_files = [] + +guides_html_files = [] # autogenerated from the 'guides' variable. guides.each do |entry| if entry.is_a?(Hash) guide_folder = entry.keys.first @@ -296,8 +301,13 @@ guides.each do |entry| end end +file 'doc/guides/index.html' => 'doc/guides/index.txt' do + sh "mizuho", 'doc/guides/index.txt', "--template", "manualsonrails", "--icons-dir", "icons" +end + desc "Generate HTML output for the guides" task :generate_guides => guides_html_files +task :generate_guides => 'doc/guides/index.html' # Generate GEM ---------------------------------------------------------------------------- |