From 3f8f2aff6f20be461b1f303ca9bb654a39fa28e3 Mon Sep 17 00:00:00 2001 From: Bob Aman Date: Fri, 11 May 2012 13:19:10 +0300 Subject: [PATCH] RDoc is no longer used. --- tasks/rdoc.rake | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 tasks/rdoc.rake diff --git a/tasks/rdoc.rake b/tasks/rdoc.rake deleted file mode 100644 index 7217194ae..000000000 --- a/tasks/rdoc.rake +++ /dev/null @@ -1,30 +0,0 @@ -require 'rubygems' -begin - # We prefer to use the RDoc gem over the site version. - gem 'rdoc' -rescue Gem::LoadError -end unless defined?(RDoc) - -require 'rdoc/task' -require 'rake/clean' - -CLOBBER.include('doc', 'ri') -CLOBBER.uniq! - -namespace :doc do - desc 'Generate RDoc documentation' - RDoc::Task.new do |rdoc| - rdoc.rdoc_dir = 'doc' - rdoc.title = "#{PKG_NAME}-#{PKG_VERSION} Documentation" - rdoc.options << '--line-numbers' << '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 -end