I have some gems that don't have ri/rdoc files and I'd like to know if there is a way to install this rdoc files.
Asked
Active
Viewed 7,399 times
2 Answers
8
EDIT:
Some of the answers on this question may help you.
OLD:
This site seems to have your answer.
Example:
gem rdoc rake --version 0.5.4
-
I've tried but don't work. when I use "gem server" rdoc file was not found – vhbsouza Jun 21 '11 at 03:24
-
Check my edit. I found another stackoverflow page that may help you. Take a look at all of the answers. – ardavis Jun 21 '11 at 04:00
5
Just rerun (works for gem v1.8.23):
gem install your_gem_name --rdoc

joost
- 6,549
- 2
- 31
- 36
-
I tried this and it looked like it worked (e.g. the rdoc option became clickable in the web page served up by gem server), however, clicking on it just resulted in an error page. As it turns out, I had --no-ri set because I don't use RI documentation, but apparently when you try to view RDOCs via gem server, they look for a cache.ri file and through an exception if they can't find it. .... So short story, if you're going to do this make sure you generate RI docs too . gem install your_gem_name --rdoc --ri – Steven Chanin Feb 06 '14 at 18:49