UPDATE March 29, 2009: This was all solved using:
template="jamis" rake doc:rails
Found on the blog by JamisBuck is the RDoc layout used online at api.rubyonrails.org. Simply acquire the file jamis.rb (posted here if you can’t find it elsewhere) and you’re covered with your Ruby Rdoc utilizing the instructions to append --template=jamis …
But what about Rails? rake doc:rails doesn’t like the --template=jamis argument.
RDOCOPT="-S -f html -T jamis" — Then run rake doc:rails and your offline local API copy will look just like the online version.
Sure there may be other ways of accomplishing this, but this got the job done and will get the job done next time I want to build the latest Rails API. If you’re interested in a more permanent solution, look at setting up variables in your .gemrc file.
Less than a month later it’s not working? I’ve tried SET and EXPORT and even with RDOCOPT set, the jamis.rb template isn’t working. Now, this is on a new install of OS X and Rails 2.3.2, but I don’t think that has anything to do with it … (I should try it on the MBP17) but there is this error when I freeze:
I’ll follow up when I solve this.
uhm, wow …
That’s all I ever needed all along …
To reiterate from buckblog:
To use it, copy it into the “rdoc/generators/template/html” directory of your Ruby installation (i.e., on my machine)
Then, when you run rdoc, just pass
and you should be good to go.
This was listed for location, the way to run it is solved above.
For Rails: