From: Dave Howell Date: 2006-04-19T09:13:02+09:00 Subject: Re: RI documentation for RubyGems On Apr 18, 2006, at 13:55, Phil Hagelberg wrote: > Wes Gamble writes: > >> Which directory is the correct one to do it in? > > On my system (Ubuntu) it's /usr/lib/ruby/gems/1.8/gems/ > > I don't know that it would be consistent across platforms. > Doesn't that depend on the question? If Wes wants documentation for Gems that he has installed, on my system, they're in (installation root)/lib/ruby/gems/1.8/gems/(individual gems) However, RubyGems couldn't install itself as a Gem, so it's in (installation root)/lib/ruby/site_ruby/1.8/rubygems On Mac OSX, (installation root) has defaulted to /usr/local, although I installed Ruby 1.8.4 in /Library/Ruby instead. To make ri documentation for RubyGems itself, you'd go to the latter directory, then run rdoc. You'll have to figure out if you want to use -r or -R. I got tired of playing guessing games with ri, so I generate all my RDoc files as HTML now.