Sha256: 86f65315ebe9ba93ed3d447c40a367a2b1dd93a3f13db4ae48f75ca7dde45ed1

Contents?: true

Size: 1.08 KB

Versions: 258

Compression:

Stored size: 1.08 KB

Contents

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)

    name    = PROJ.name
    rf_name = PROJ.rubyforge.name

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

    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

258 entries across 255 versions & 77 rubygems

Version Path
logging-1.0.0 tasks/rdoc.rake
logging-1.1.2 tasks/rdoc.rake
logging-1.1.4 tasks/rdoc.rake
loquacious-1.2.0 tasks/rdoc.rake
loquacious-1.0.0 tasks/rdoc.rake
loquacious-1.1.1 tasks/rdoc.rake
loquacious-1.1.0 tasks/rdoc.rake
loquacious-1.3.0 tasks/rdoc.rake
map-fields-1.0.0 tasks/rdoc.rake
mp3renamer-0.0.3 tasks/rdoc.rake
relisp-1.0.0 tasks/rdoc.rake
surpass-0.0.4 tasks/rdoc.rake
surpass-0.0.3 tasks/rdoc.rake
tournament-2.5.1 tasks/rdoc.rake
turn-0.6.0 tasks/rdoc.rake
turn-0.5.1 tasks/rdoc.rake
webby-0.9.4 tasks/rdoc.rake
webby-0.9.4-x86-mswin32 tasks/rdoc.rake