[Nitro] devlab's glycerin RDoc

Fabian Buch fabian at oggu.de
Tue Apr 25 12:34:14 EDT 2006


Am 25.04.2006 um 17:47 schrieb Jonas Pfenniger:

> Hi Fabian,
>
> If somebody wants to help, it would be nice to indicate me how to
> ignore _darcs in rake. Or i could switch to reap :-p
>
> Here is my rake task :
>
> require 'rake/rdoctask'
> require 'rake/testtask'
>
> # Default task
>
> task :default => :rdoc
>
> Rake::RDocTask.new do |rd|
>    rd.main = 'etc/RDOC'
>    rd.rdoc_dir = 'htdocs/rdoc/nitrohq'
>    rd.rdoc_files.include('nitrohq/*/lib/**/*.rb')
> end
>
> # * Jonas Pfenniger  <jonas at oree.ch>

I know nothing about Rake, but quick googling:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/164567
http://dev.rubyonrails.org/svn/rails/trunk/activerecord/Rakefile

So, as expected rdoc_files.exclude:

rdoc.rdoc_files.exclude('lib/active_record/vendor/*')
or
rdoc.rdoc_files.exclude('_darcs/**/*.rb')

Fabian




More information about the Nitro-general mailing list