1

I have installed Ruby 2.0.0 with rvm and want to have local html documentation. So I run

$ rvm docs generate
Installing rdoc-data................................................................
Generating gems documentation.......
$ rvm docs open
rdoc docs are missing, perhaps run 'rvm docs generate' first?

What is wrong?

lexsys
  • 537
  • 4
  • 24

3 Answers3

2

Here's what works for me for RVM:

rdoc $MY_RUBY_HOME -o ~/ruby_docs

That puts the HTML documentation for the core and standard libraries in your $HOME/ruby_docs directory. Then, if you're on Mac OS, simply run:

open ~/ruby_docs/index.html

or navigate to the directory and open index.html somehow for other OSes.

the Tin Man
  • 158,662
  • 42
  • 215
  • 303
1

I recommend using this app https://itunes.apple.com/gb/app/dash-docs-snippets/id458034879?mt=12 Allows you to access documentation for any language.

DMH
  • 2,529
  • 3
  • 24
  • 35
  • Thank you for the link, I'll give this app a try. But its nice just to have rdoc html on my laptop. – lexsys Sep 08 '14 at 13:26
  • @Lexsys this will still give you access to the docs locally. its just another means to an end. – DMH Sep 08 '14 at 21:01
0

Try gem update rdoc and then generate the docs. I had the same issue and this solved it.

kriskova
  • 568
  • 3
  • 7