Browse files

+ sdoc

  • Loading branch information...
1 parent 596d8fe commit bc0394867f621a35e0ff53b6f7febf8caa4b05ff @kschiess committed Nov 20, 2010
Showing with 16 additions and 4 deletions.
  1. +2 −0 Gemfile
  2. +6 −0 Gemfile.lock
  3. +8 −4 Rakefile
View
2 Gemfile
@@ -6,4 +6,6 @@ gem 'blankslate', '>= 2.1.2.3'
group :development do
gem 'rspec'
gem 'flexmock'
+
+ gem 'sdoc'
end
View
6 Gemfile.lock
@@ -4,6 +4,8 @@ GEM
blankslate (2.1.2.3)
diff-lcs (1.1.2)
flexmock (0.8.11)
+ json (1.4.6)
+ rdoc (2.4.3)
rspec (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
@@ -14,6 +16,9 @@ GEM
rspec-mocks (2.0.1)
rspec-core (~> 2.0.1)
rspec-expectations (~> 2.0.1)
+ sdoc (0.2.20)
+ json (>= 1.1.3)
+ rdoc (= 2.4.3)
PLATFORMS
ruby
@@ -22,3 +27,4 @@ DEPENDENCIES
blankslate (>= 2.1.2.3)
flexmock
rspec
+ sdoc
View
12 Rakefile
@@ -60,11 +60,15 @@ end
task :package => :gemspec
+require 'sdoc'
+
# Generate documentation
-Rake::RDocTask.new do |rd|
- rd.main = "README"
- rd.rdoc_files.include("README", "lib/**/*.rb")
- rd.rdoc_dir = "rdoc"
+Rake::RDocTask.new do |rdoc|
+ rdoc.options << '--fmt' << 'shtml' # explictly set shtml generator
+ rdoc.template = 'direct' # lighter template used on railsapi.com
+ rdoc.main = "README"
+ rdoc.rdoc_files.include("README", "lib/**/*.rb")
+ rdoc.rdoc_dir = "rdoc"
end
desc 'Clear out RDoc and generated packages'

0 comments on commit bc03948

Please sign in to comment.