Skip to content

Instantly share code, notes, and snippets.

@rhyhann
Created October 28, 2008 20:26
Show Gist options
  • Save rhyhann/20506 to your computer and use it in GitHub Desktop.
Save rhyhann/20506 to your computer and use it in GitHub Desktop.
require 'lib/helpers.rb'
class Rdoc < Thor
desc "generate", "generates the rDoc documentation"
def generate
require 'rdoc'
require 'rake/rdoctask'
gem 'darkfish-rdoc'
require 'darkfish-rdoc'
Rake::RDocTask.new do |rdoc|
rdoc.title = "MyFantasticLibrary - a library of utter fantasticness"
rdoc.rdoc_files.include 'README'
rdoc.options += [
'-SHN',
'-f', 'darkfish', # This is the important bit
]
end
end
end
# vim:filetype=ruby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment