Search code examples
rubyrdocyard

How to rebuild rdoc for all the installed gems?


I have several gems installed in multiple locations.

What is the hard/easy way to generate/re-generate:

  • rdoc for all these installed gems, all at once?
  • yardoc for all these installed gems, all at once?

Solution

  • yard gems
    

    or

    sudo yard gems
    

    should do the job. You may also want to use the --rebuild flag. If you want to run a local Yardoc server for your installed gems, then run

    yard server -g