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.
How can I install RDOC of gems already installed?
possible duplicate of Can you install documentation for existing gems? –
Premeditation
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 –
Chronogram
Check my edit. I found another stackoverflow page that may help you. Take a look at all of the answers. –
Odeliaodelinda
Just rerun (works for gem v1.8.23):
gem install your_gem_name --rdoc
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 –
Osage
© 2022 - 2024 — McMap. All rights reserved.