Sha256: 91741ba0372f9bf3adf565c993495edbf1ea45c5d538480dabe481a28d49d89e

Contents?: true

Size: 746 Bytes

Versions: 3

Compression:

Stored size: 746 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.md", "CHANGELOG.md", "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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
signet-0.3.2 tasks/rdoc.rake
signet-0.3.1 tasks/rdoc.rake
signet-0.3.0 tasks/rdoc.rake