Sha256: 54230a3d6f55865cb07200ac8d9d3e4d16758a50f234cf6a630fdb0efb7b2645

Contents?: true

Size: 1.04 KB

Versions: 61

Compression:

Stored size: 1.04 KB

Contents

# $Id$

require 'rake/rdoctask'

namespace :doc do

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

    incl = Regexp.new(PROJ.rdoc_include.join('|'))
    excl = Regexp.new(PROJ.rdoc_exclude.join('|'))
    files = PROJ.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"
    title = "#{PROJ.rubyforge_name}'s " + title if PROJ.rubyforge_name != title

    rd.options << "-t #{title}"
    rd.options.concat(PROJ.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

61 entries across 59 versions & 21 rubygems

Version Path
Peeja-rubot-0.5.0 tasks/doc.rake
derailed-mole-1.0.10 tasks/doc.rake
derailed-ziya-2.0.4 tasks/doc.rake
derailed-ziya-2.0.6 tasks/doc.rake
gotascii-simple_importer-1.0.0 tasks/doc.rake
gotascii-simple_importer-1.0.1 tasks/doc.rake
vigetlabs-simple_importer-1.0.1 tasks/doc.rake
plexus-rmmseg-0.1.6 tasks/doc.rake
loyal_rmmseg-0.0.2 tasks/doc.rake
bones-1.3.5 tasks/doc.rake
bones-1.3.4 tasks/doc.rake
bones-1.3.4 data/tasks/doc.rake
bones-1.3.5 data/tasks/doc.rake
colour-0.1.2 tasks/doc.rake
colour-0.1.0 tasks/doc.rake
colour-0.1.1 tasks/doc.rake
friend-feed-0.1.0 tasks/doc.rake
friend-feed-0.1.1 tasks/doc.rake
hurl-0.0.4 tasks/doc.rake
hurl-0.0.3 tasks/doc.rake