You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by as...@apache.org on 2009/02/27 09:58:05 UTC
svn commit: r748442 - /buildr/trunk/rakelib/doc.rake
Author: assaf
Date: Fri Feb 27 08:58:05 2009
New Revision: 748442
URL: http://svn.apache.org/viewvc?rev=748442&view=rev
Log:
Switched RDoc theme to mislav-hanna.
Modified:
buildr/trunk/rakelib/doc.rake
Modified: buildr/trunk/rakelib/doc.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/doc.rake?rev=748442&r1=748441&r2=748442&view=diff
==============================================================================
--- buildr/trunk/rakelib/doc.rake (original)
+++ buildr/trunk/rakelib/doc.rake Fri Feb 27 08:58:05 2009
@@ -14,33 +14,26 @@
# the License.
-require 'rake/rdoctask'
+begin # For the Web site, we use the mislav-hanna RDoc theme (http://github.com/mislav/hanna/)
+ require 'hanna/rdoctask'
+rescue LoadError
+ puts "Buildr uses the mislav-hanna RDoc theme. You can install it by running rake setup"
+ task('setup') { install_gem 'mislav-hanna', :source=>'http://gems.github.com' }
+ require 'rake/rdoctask'
+end
+
desc 'Generate RDoc documentation'
rdoc = Rake::RDocTask.new('rdoc') do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = spec.name
- rdoc.options = spec.rdoc_options + ['--promiscuous']
+ rdoc.options = spec.rdoc_options
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include spec.extra_rdoc_files
end
begin
- gem 'allison'
- rdoc.template = File.expand_path('lib/allison.rb', Gem.loaded_specs['allison'].full_gem_path)
-rescue LoadError
- puts 'Please run rake setup to install the Allison RDoc template'
- task 'setup' do
- install_gem 'allison'
- end
- task 'stage:check' do
- fail 'Please run rake setup to install the Allison RDoc template'
- end
-end
-
-
-begin
require 'docter'
require 'docter/server'