Sha256: 1ab83cc067e5169e8015a3fd652f9b40c0d59c8efaccf8bebc7c4919772be3e7

Contents?: true

Size: 791 Bytes

Versions: 38

Compression:

Stored size: 791 Bytes

Contents

require "rake/rdoctask"

namespace :doc do
  desc "Generate RDoc documentation"
  Rake::RDocTask.new do |rdoc|
    rdoc.rdoc_dir = "doc"
    rdoc.title    = "#{PKG_NAME}-#{PKG_VERSION} Documentation"
    rdoc.options << "--line-numbers" << "--inline-source" <<
      "--accessor" << "cattr_accessor=object" << "--charset" << "utf-8"
    rdoc.template = "#{ENV["template"]}.rb" if ENV["template"]
    rdoc.rdoc_files.include("README", "CHANGELOG", "LICENSE")
    rdoc.rdoc_files.include("lib/**/*.rb")
  end

  desc "Generate ri locally for testing"
  task :ri do
    sh "rdoc --ri -o ri ."
  end

  desc "Remove ri products"
  task :clobber_ri do
    rm_r "ri" rescue nil
  end
end

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

task "clobber" => ["doc:clobber_rdoc", "doc:clobber_ri"]

Version data entries

38 entries across 38 versions & 12 rubygems

Version Path
mislav-addressable-2.1.1 tasks/rdoc.rake
sr-couchy-0.0.2 vendor/addressable/tasks/rdoc.rake
sr-couchy-0.0.3 vendor/addressable/tasks/rdoc.rake
radiant-1.0.0 ruby-debug/ruby/1.8/gems/uuidtools-2.1.2/tasks/rdoc.rake
sidekick-client-0.2.5 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
cerberus-0.8.0 lib/vendor/addressable/tasks/rdoc.rake
uuidtools-2.1.2 tasks/rdoc.rake
cerberus-0.7.9 lib/vendor/addressable/tasks/rdoc.rake
cerberus-0.7.8 lib/vendor/addressable/tasks/rdoc.rake
cerberus-0.7.7 lib/vendor/addressable/tasks/rdoc.rake
addressable-2.1.2 tasks/rdoc.rake
sidekick-client-0.2.4 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
sidekick-client-0.2.3 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
sidekick-client-0.2.2 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
sidekick-client-0.2.1 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
sidekick-client-0.2.0 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
sidekick-client-0.1.0 lib/ext/uuidtools-2.1.1/tasks/rdoc.rake
honkster-addressable-2.1.2 tasks/rdoc.rake
addressable-2.1.1 tasks/rdoc.rake
uuidtools-2.1.1 tasks/rdoc.rake