Use doc as rdoc task and directory

This commit is contained in:
Samuel Cochran 2012-07-25 12:05:01 +08:00
parent aa5f056ae6
commit 76ca9ac918

View File

@ -5,11 +5,11 @@ spec_file = File.expand_path __FILE__ + '/../mailcatcher.gemspec'
spec = Gem::Specification.load spec_file
require 'rdoc/task'
RDoc::Task.new :rdoc => "rdoc",
:clobber_rdoc => "rdoc:clean",
:rerdoc => "rdoc:force" do |rdoc|
RDoc::Task.new :rdoc => "doc",
:clobber_rdoc => "doc:clean",
:rerdoc => "doc:force" do |rdoc|
rdoc.title = "MailCatcher #{MailCatcher::VERSION}"
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_dir = 'doc'
rdoc.main = 'README.md'
rdoc.rdoc_files.include 'lib/**/*.rb'
end