Search code examples
rubyrubygemsrvmrdoc

Why does "rvm docs generate" use a different directory for output than "gem server"?


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