I would like to download the Rails Framework Documentation (http:// rails.rubyonrails.com/) so I can use it offline.
I tried doing ‘File / Save As…’ but that didn’t work.
I had limited success with downloading http://corelib.rubyonrails.org/
using ‘File / Save As…’, but the frames get all confused.
I would like to download the Rails Framework Documentation (http:// rails.rubyonrails.com/) so I can use it offline.
I tried doing ‘File / Save As…’ but that didn’t work.
I had limited success with downloading http://corelib.rubyonrails.org/
using ‘File / Save As…’, but the frames get all confused.
Any help greatly appreciated.
Paul D.
download wget, and run wget -m -k api.rubionrails.com (I’m not
about the switches, use --help and or google to find out)
you can obtain docs for a particular gem if you run rdoc in the
respective directory. Or, run rdoc with a list of paths to all the
rails gems. i.e.
rdoc c:/ruby/lib/1.8/gems/activerecord-1.x.x/lib c:/ruby/lib/… etc.
there was a recent thread about generating rdoc for the ruby core,
as seen on ruby-doc.org ;-). The rails docs are generated similarly.
DISCLAIMER: It’s midnight here, so take this as a hint, and please
work out the details
download wget, and run wget -m -k api.rubionrails.com (I’m not
about the switches, use --help and or google to find out)
Please do not encourage people to do this.
It will eat up considerable bandwidth from a site that is offering a
free service, and gains you nothing you cannot get for yourself in
other, better ways.
I would like to download the Rails Framework Documentation (http:// rails.rubyonrails.com/) so I can use it offline.
I tried doing ‘File / Save As…’ but that didn’t work.
I had limited success with downloading http://corelib.rubyonrails.org/
using ‘File / Save As…’, but the frames get all confused.
Can you share with the list what those better ways are? Is it tar’d up
somewhere? I’ve always wanted to get a local copy of the api and never
thought about using wget until this mail.
Can you share with the list what those better ways are? Is it tar’d up
somewhere? I’ve always wanted to get a local copy of the api and never
thought about using wget until this mail.
Get the source (i.e gem install rails -y)
Run rdoc over the source
I’m pretty sure that’s how it gets created for display on rubyonrails.com
If there’s more to than that, then perhaps someone on the rails list
could give more detail.
That’s exactly what I get. On the other hand, doesn’t using the
installed gems for docs mean that they will be split up into rails,
activerecord etc…?
best,
Dan
Ok, so some more things to try:
[1] says do
rake rails:freeze:gems
before
rake doc:rails
if you don’t want to freeze your rails app, create a new one and
freeze that.
this is a Rails specific question now, so it’d better to ask on
rails list/group - this is not a question of rdoc anymore, it’s about
how their rakefiles are set up.