docs generate
was initially meant to generate docs for ruby only, not gems, I have extended the command, run this:
rvm get head
rvm docs generate-gems
Question
rvm use 2@mygemset
rvm docs generate
gem server --help
prints:
Defaults:
--port 8808 --dir /home/lsiden/.rvm/gems/ruby-2.0.1-p353@mygemset --no-daemon
But:
ls /home/lsiden/.rvm/gems/ruby-2.1.0@mygemset/doc
is empty.
Where did rdocs generate
put all the docs it just created? Shouldn't it match the location where gem server
sets its docroot?
I also asked the same question on Github but I want to check if someone else already encountered this.
Solution
docs generate
was initially meant to generate docs for ruby only, not gems, I have extended the command, run this:
rvm get head
rvm docs generate-gems
OTHER TIPS
From the docs.log file:
~/.rvm/rubies/ruby-2.0.0-p353/share/ri/2.0.0/site...
Why would you expect it to? That command generates Ruby's core and stdlib documentation. What does that have to do with a gem?
So, even though you are using a gemset, the rvm docs
command is more of a Ruby level command.