I build local rdoc for each project so I have the docs that coorespond to the Rails that is being used (yes, burned by newer stuff that just doesn’t seem to work when you try it in an old project
I use the same ajax format as railsbrain.com by making these changes to vendor/rails/railties/lib/tasks/documentation.rake
@@ -4,6 +4,7 @@
rdoc.rdoc_dir = ‘doc/app’
rdoc.title = “Rails Application Documentation”
rdoc.options << ‘–line-numbers’ << ‘–inline-source’
- rdoc.options << ‘–fmt=ajax’ << ‘-T ajax’
rdoc.rdoc_files.include(‘doc/README_FOR_APP’)
rdoc.rdoc_files.include(‘app/**/*.rb’)
rdoc.rdoc_files.include(‘lib/**/*.rb’)
@@ -15,6 +16,7 @@
rdoc.template = “#{ENV[‘template’]}.rb” if ENV[‘template’]
rdoc.title = “Rails Framework Documentation”
rdoc.options << ‘–line-numbers’ << ‘–inline-source’
- rdoc.options << ‘–fmt=ajax’ << ‘-T ajax’
rdoc.rdoc_files.include(‘README’)
rdoc.rdoc_files.include(‘vendor/rails/railties/CHANGELOG’)
rdoc.rdoc_files.include(‘vendor/rails/railties/MIT-LICENSE’)
@@ -64,7 +66,8 @@
options << “-o doc/plugins/#{plugin}”
options << “–title ‘#{plugin.titlecase} Plugin Documentation’”
options << ‘–line-numbers’ << ‘–inline-source’
files.include(“#{plugin_base}/lib/**/*.rb”)
if File.exists?(“#{plugin_base}/README”)
Now if I could only remember where that ‘ajax’ format and template live…
-Rob