Sha256: a1b22eacdd22de7430dc2377e68e9e4e0fafdc0e992776fb7a7370fc9c929087

Contents?: true

Size: 1.19 KB

Versions: 19

Compression:

Stored size: 1.19 KB

Contents

require 'rake/rdoctask'
# require 'darkfish-rdoc'

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 << "-SHN"
    rd.options << "-f"
    # rd.options << "darkfish"    
    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

19 entries across 19 versions & 3 rubygems

Version Path
mongo3-0.1.5 tasks/rdoc.rake
mongo3-0.1.4 tasks/rdoc.rake
rackamole-0.4.1 tasks1/rdoc.rake
rackamole-0.4.0 tasks1/rdoc.rake
rackamole-0.3.9 tasks/rdoc.rake
rackamole-0.3.8 tasks/rdoc.rake
mongo3-0.1.3 tasks/rdoc.rake
rackamole-0.3.7 tasks/rdoc.rake
mongo3-0.1.2 tasks/rdoc.rake
mongo_rack-0.0.5 tasks/rdoc.rake
mongo3-0.1.1 tasks/rdoc.rake
mongo_rack-0.0.4 tasks/rdoc.rake
mongo_rack-0.0.3 tasks/rdoc.rake
mongo3-0.1.0 tasks/rdoc.rake
mongo3-0.0.9 tasks/rdoc.rake
mongo3-0.0.8 tasks/rdoc.rake
mongo3-0.0.7 tasks/rdoc.rake
mongo3-0.0.6 tasks/rdoc.rake
mongo3-0.0.5 tasks/rdoc.rake