Sha256: 04511d7805b63bc18be02a7f6d37f0c32f6bb6041a72a311e56023f2366e32cf

Contents?: true

Size: 1.07 KB

Versions: 151

Compression:

Stored size: 1.07 KB

Contents

# $Id$

require 'rake/rdoctask'

namespace :doc do

  desc 'Generate RDoc documentation'
  Rake::RDocTask.new do |rd|
    rdoc = PROJ.rdoc
    rd.main = rdoc.main
    rd.rdoc_dir = rdoc.dir

    incl = Regexp.new(rdoc.include.join('|'))
    excl = Regexp.new(rdoc.exclude.join('|'))
    files = PROJ.gem.files.find_all do |fn|
              case fn
              when excl; false
              when incl; true
              else false end
            end
    rd.rdoc_files.push(*files)

    title = "#{PROJ.name}-#{PROJ.version} Documentation"

    rf_name = PROJ.rubyforge.name
    title = "#{rf_name}'s " + title if rf_name.valid? and rf_name != title

    rd.options << "-t #{title}"
    rd.options.concat(rdoc.opts)
  end

  desc 'Generate ri locally for testing'
  task :ri => :clobber_ri do
    sh "#{RDOC} --ri -o ri ."
  end

  task :clobber_ri do
    rm_r 'ri' rescue nil
  end

end  # namespace :doc

desc 'Alias to doc:rdoc'
task :doc => 'doc:rdoc'

desc 'Remove all build products'
task :clobber => %w(doc:clobber_rdoc doc:clobber_ri)

remove_desc_for_task %w(doc:clobber_rdoc)

# EOF

Version data entries

151 entries across 148 versions & 47 rubygems

Version Path
ckuru-tools-0.0.13 tasks/rdoc.rake
libxml-jruby-modified-1.0.2-jruby tasks/rdoc.rake
libxml-jruby-modified-1.0.1-jruby tasks/rdoc.rake
Neurogami-roir-1.3.3.1 tasks/rdoc.rake
Neurogami-roir-1.3.4 tasks/rdoc.rake
Oshuma-pingfm-1.0.0 tasks/rdoc.rake
Oshuma-pingfm-1.0.1 tasks/rdoc.rake
Oshuma-pingfm-1.0.2 tasks/rdoc.rake
Shazburg-webby-0.9.0 tasks/rdoc.rake
TwP-webby-0.9.0 tasks/rdoc.rake
TwP-webby-0.9.1 tasks/rdoc.rake
TwP-webby-0.9.2 tasks/rdoc.rake
TwP-webby-0.9.3 tasks/rdoc.rake
aniero-iphone_data-0.0.0 tasks/rdoc.rake
aniero-iphone_data-0.1.0 tasks/rdoc.rake
aniero-tire_swing-0.0.2 tasks/rdoc.rake
aniero-tire_swing-0.0.3 tasks/rdoc.rake
aniero-tire_swing-0.0.4 tasks/rdoc.rake
aniero-tire_swing-0.0.5 tasks/rdoc.rake
aniero-tire_swing-0.0.6 tasks/rdoc.rake