Skip to content

Commit

Permalink
Documentation rake settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip (flip) Kromer committed Oct 12, 2009
1 parent 2f9e21d commit 329351f
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 227 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -34,3 +34,4 @@ config/private.yaml
*.stackdump
*.so
*.o
doc
26 changes: 25 additions & 1 deletion Rakefile
Expand Up @@ -67,9 +67,33 @@ task :default => :spec

begin
require 'yard'
YARD::Rake::YardocTask.new
YARD::Rake::YardocTask.new do |yard|
yard.files = %w[bin lib utils].map{|d| d+'/**/*.rb'}
p yard.files
end
rescue LoadError
task :yardoc do
abort "YARD is not available. In order to run yardoc, you must: sudo gem install yard"
end
end

require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
require 'rdoc'
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end

rdoc.options += [
'-SHN',
'-f', 'darkfish', # use darkfish rdoc styler
]
p rdoc.options
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "edamame #{version}"
#
rdoc.rdoc_files.include('*.textile*')
%w[bin lib utils].each{|d| rdoc.rdoc_files.include d+'/**/*.rb'}
end
137 changes: 0 additions & 137 deletions lib/edamame/old/heavy_job.rb

This file was deleted.

89 changes: 0 additions & 89 deletions lib/edamame/old/rescheduled.rb

This file was deleted.

0 comments on commit 329351f

Please sign in to comment.