Sha256: df393de24237bef7efc2eeb679321f6078e903d19beefe295ecd63502424c82a

Contents?: true

Size: 789 Bytes

Versions: 11

Compression:

Stored size: 789 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", "CHANGES", "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

11 entries across 11 versions & 2 rubygems

Version Path
virgild-resumetools-0.2.0 tasks/rdoc.rake
virgild-resumetools-0.2.1 tasks/rdoc.rake
virgild-resumetools-0.2.2 tasks/rdoc.rake
virgild-resumetools-0.2.3 tasks/rdoc.rake
virgild-resumetools-0.2.4.1 tasks/rdoc.rake
virgild-resumetools-0.2.4 tasks/rdoc.rake
virgild-resumetools-0.2.5.0 tasks/rdoc.rake
virgild-resumetools-0.2.5.1 tasks/rdoc.rake
virgild-resumetools-0.2.5.2 tasks/rdoc.rake
resumetools-0.2.7.6 tasks/rdoc.rake
resumetools-0.2.7.0 tasks/rdoc.rake