[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Novice question about rdoc

LAMBEAU Bernard

1/6/2009 4:54:00 PM

I've got a stupid problem with rdoc, and I don't find any answer on
the web. Sorry ...

Is there an option to force rdoc to generate the html documentation
each time it is invoked? I use the following task in Rakefile:

desc "Generates documentation"
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_files.include( "README", "INSTALL",
"TODO", "CHANGELOG",
"AUTHORS", "COPYING",
"lib/" )
rdoc.main = "README"
rdoc.rdoc_dir = "doc/html"
rdoc.title = "Stamina Documentation"
rdoc.options << "-S" << "-N" << "-p" << "-H"
end

rake rdoc generates the documentation only the first time. After, it
does not generate anything unless I remove the doc/html folder.

blambeau

2 Answers

Brian Candler

1/6/2009 7:13:00 PM

0

LAMBEAU Bernard wrote:
> rake rdoc generates the documentation only the first time. After, it
> does not generate anything unless I remove the doc/html folder.

Try: rake rerdoc

# Rebuild the rdoc files from scratch, even if they are not out
# of date.
--
Posted via http://www.ruby-....

Ryan Davis

1/7/2009 9:51:00 PM

0


On Jan 6, 2009, at 11:13 , Brian Candler wrote:

> LAMBEAU Bernard wrote:
>> rake rdoc generates the documentation only the first time. After, it
>> does not generate anything unless I remove the doc/html folder.
>
> Try: rake rerdoc
>
> # Rebuild the rdoc files from scratch, even if they are not out
> # of date.

*nod*

or:

task :rdoc => :clobber_docs