Skip to content

Commit

Permalink
Add documentation tasks and ignore generated doc files.
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Chacon <[email protected]>
  • Loading branch information
bitbckt authored and schacon committed Dec 16, 2008
1 parent 5a7bf2f commit 12932c3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ pkg
*~
report.html
coverage
doc
12 changes: 12 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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|
Expand Down Expand Up @@ -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.