Browse files

Add documentation tasks and ignore generated doc files.

Signed-off-by: Scott Chacon <schacon@gmail.com>
  • Loading branch information...
1 parent 5a7bf2f commit 12932c33b4acce39dd6684a8a5915623e2f09ecc @bitbckt bitbckt committed with Sep 18, 2008
Showing with 13 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +12 −0 Rakefile
View
1 .gitignore
@@ -2,3 +2,4 @@ pkg
*~
report.html
coverage
+doc
View
12 Rakefile
@@ -1,6 +1,7 @@
require 'rubygems'
Gem::manage_gems
require 'rake/gempackagetask'
+require 'rake/rdoctask'
require 'spec/rake/spectask'
spec = Gem::Specification.new do |s|
@@ -42,3 +43,14 @@ Spec::Rake::SpecTask.new('spec:report') do |t|
t.spec_opts = ['--format', 'html:report.html', '--diff']
end
+task :doc => [:rdoc]
+namespace :doc do
+ Rake::RDocTask.new do |rdoc|
+ files = ["README", "lib/**/*.rb"]
+ rdoc.rdoc_files.add(files)
+ rdoc.main = "README"
+ rdoc.title = "Munger Docs"
+ rdoc.rdoc_dir = "doc"
+ rdoc.options << "--line-numbers" << "--inline-source"
+ end
+end

0 comments on commit 12932c3

Please sign in to comment.