How can I install RDOC of gems already installed?
Asked Answered
C

2

8

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.

Chronogram answered 21/6, 2011 at 3:2 Comment(1)
possible duplicate of Can you install documentation for existing gems?Premeditation
O
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
Odeliaodelinda answered 21/6, 2011 at 3:7 Comment(2)
I've tried but don't work. when I use "gem server" rdoc file was not foundChronogram
Check my edit. I found another stackoverflow page that may help you. Take a look at all of the answers.Odeliaodelinda
I
5

Just rerun (works for gem v1.8.23):

gem install your_gem_name --rdoc
Iredale answered 4/1, 2014 at 21:54 Comment(1)
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 --riOsage

© 2022 - 2024 — McMap. All rights reserved.