aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-10-21 17:10:21 +0100
committerPratik Naik <pratiknaik@gmail.com>2008-10-21 17:10:21 +0100
commit657476743ebf85ce1bb95aa8b9b486b48092aad1 (patch)
treebb35253bbd5039bb93df36af3c5bbb7c53edbd96 /railties/Rakefile
parenta0614cd225380b88abc1affbe46db71585d218be (diff)
downloadrails-657476743ebf85ce1bb95aa8b9b486b48092aad1.tar.gz
rails-657476743ebf85ce1bb95aa8b9b486b48092aad1.tar.bz2
rails-657476743ebf85ce1bb95aa8b9b486b48092aad1.zip
Use custom templates and stuff
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 4f49409b18..01be83fb35 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -281,7 +281,10 @@ task :guides do
FileUtils.rm_r(html) if File.directory?(html)
FileUtils.mkdir(html)
- ignore = ['icons', 'images']
+ template = File.expand_path("doc/guides/source/templates/guides.html.erb")
+ icons = File.expand_path("doc/guides/source/icons")
+
+ ignore = ['icons', 'images', 'templates', 'stylesheets']
ignore << 'active_record_basics.txt'
indexless = ['index.txt', 'authors.txt']
@@ -300,7 +303,7 @@ task :guides do
begin
puts "GENERATING => #{output}"
ENV['MANUALSONRAILS_TOC'] = 'no' if indexless.include?(entry)
- Mizuho::Generator.new(input, output, 'manualsonrails', nil, File.expand_path(File.join(source, 'icons'))).start
+ Mizuho::Generator.new(input, output, template, false, icons).start
rescue Mizuho::GenerationError
STDERR.puts "*** ERROR"
exit 2