Gem & rdoc: How to avoid "Could not find main page name" warning when using gems?

(Thomas) #1

Hi,

When I automatically the rdoc documentation of a gem I made, I always get this error/warning. I know there is a rdoc command-line option for defining the main page when invoking rdoc from the command line. But how do I pass this option from via a gemspec?

Also, Pickaxe 2 mentions a rdoc directive :main: that should set the main page. But this directive is unknown in the 1.8.2 (cygwin) distribution. Does the book refer to an upcoming version?

Regards,
Thomas.

(Chad Fowler) #2

Hi. You can see how to specify rdoc options here:

http://docs.rubygems.org/read/chapter/20#rdoc_options

ยทยทยท

On 8/18/05, Thomas <sanobast-2005a@yahoo.de> wrote:

Hi,

When I automatically the rdoc documentation of a gem I made, I always
get this error/warning. I know there is a rdoc command-line option for
defining the main page when invoking rdoc from the command line. But how
do I pass this option from via a gemspec?

Also, Pickaxe 2 mentions a rdoc directive :main: that should set the
main page. But this directive is unknown in the 1.8.2 (cygwin)
distribution. Does the book refer to an upcoming version?

--
Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 800,000 gems served!)