# Adding files to rdoc

**URL:** <https://www.ruby-forum.com/t/adding-files-to-rdoc/144085>\
**Category:** Ruby\
**Created:** [July 25, 2008, 8:01am UTC](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085 "2008-07-25T08:01:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [July 25, 2008, 8:01am UTC](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085/1 "2008-07-25T08:01:59Z")

</div>

Wasn’t able to find an answer to this one trivially…

So gemspecs have the ‘rdoc\_extra\_files’ option to be able to specify  
README as their main file [index.html].  
How might this be accomplished on the command line? rdoc --help doesn’t  
mention extra files.  
rdoc --main README results in

Generating HTML…  
Could not find main page README

Thanks!  
-R

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [July 25, 2008, 8:19pm UTC](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085/2 "2008-07-25T20:19:24Z")

</div>

On Jul 24, 2008, at 22:56 PM, Roger P. wrote:

> Could not find main page README  
> rdoc --main README README

should do it, you also have to put the file in the files list.

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [July 25, 2008, 9:22pm UTC](https://www.ruby-forum.com/t/adding-files-to-rdoc/144085/3 "2008-07-25T21:22:57Z")

</div>

Eric H. wrote:

> On Jul 24, 2008, at 22:56 PM, Roger P. wrote:
> 
> > Could not find main page README  
> > rdoc --main README README
> 
> should do it, you also have to put the file in the files list.

Thank you!  
rdoc --main README . README  
indeed does the trick.  
-R
