Skip to content

Commit

Permalink
use allison stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Mar 24, 2008
1 parent eadbf9f commit a891491
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -12,7 +12,7 @@ namespace :readme do
desc "create html for website using coderay, use --silent option"
task :html do
rm_rf 'doc'
`rdoc --quiet README`
`rdoc --quiet --style rdoc.css README`
require 'hpricot'
require 'htmlentities'
doc = open( 'doc/files/README.html' ) { |f| Hpricot(f) }
Expand Down
20 changes: 16 additions & 4 deletions tasks/gregproject.rake
Expand Up @@ -40,11 +40,23 @@ file :website => ['README','Rakefile'] do
out 'rake --silent deploy:rsync'
end
end

require 'rake/rdoctask'

desc "generate documentation"
task :rdoc do
fail unless system 'rdoc --force-update --quiet README lib/*'
end
Rake::RDocTask.new do |rd|

rd.main = "README"

rd.rdoc_dir = "doc"

rd.rdoc_files.include("README", "lib/**/*.rb")

rd.title = "#$project rdoc"

rd.options << '-S' # inline source

rd.template = `allison --path`.chomp + '.rb'
end

desc 'git add and push'
task :record do
Expand Down

0 comments on commit a891491

Please sign in to comment.