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/03/26 17:30:47 UTC
svn commit: r758725 - in /buildr/trunk: Rakefile buildr.gemspec
rakelib/doc.rake
Author: assaf
Date: Thu Mar 26 16:30:39 2009
New Revision: 758725
URL: http://svn.apache.org/viewvc?rev=758725&view=rev
Log:
Switched to using SDoc (http://github.com/voloko/sdoc/) for RDoc generation. Better search capability.
Modified:
buildr/trunk/Rakefile
buildr/trunk/buildr.gemspec
buildr/trunk/rakelib/doc.rake
Modified: buildr/trunk/Rakefile
URL: http://svn.apache.org/viewvc/buildr/trunk/Rakefile?rev=758725&r1=758724&r2=758725&view=diff
==============================================================================
--- buildr/trunk/Rakefile (original)
+++ buildr/trunk/Rakefile Thu Mar 26 16:30:39 2009
@@ -35,6 +35,9 @@
@specs[platform]
end
+# Right now used for documentation.
+$github_url = 'http://github.com/buildr/buildr'
+
# Tell us if we need sudo for various commands.
def sudo_needed?
Config::CONFIG['host_os'] !~ /windows|cygwin|bccwin|cygwin|djgpp|mingw|mswin|wince/i && !ENV['GEM_HOME']
Modified: buildr/trunk/buildr.gemspec
URL: http://svn.apache.org/viewvc/buildr/trunk/buildr.gemspec?rev=758725&r1=758724&r2=758725&view=diff
==============================================================================
--- buildr/trunk/buildr.gemspec (original)
+++ buildr/trunk/buildr.gemspec Thu Mar 26 16:30:39 2009
@@ -21,7 +21,6 @@
spec.email = "users@buildr.apache.org"
spec.homepage = "http://buildr.apache.org/"
spec.summary = "A build system that doesn't suck"
- spec.rubyforge_project = 'buildr'
spec.description = <<-TEXT
Apache Buildr is a build system for Java-based applications, including support
for Scala, Groovy and a growing number of JVM languages and tools. We wanted
@@ -29,6 +28,7 @@
to do, and it takes care of the rest. But also something we can easily extend
for those one-off tasks, with a language that's a joy to use.
TEXT
+ spec.rubyforge_project = 'buildr'
# Rakefile needs to create spec for both platforms (ruby and java), using the
# $platform global variable. In all other cases, we figure it out from RUBY_PLATFORM.
Modified: buildr/trunk/rakelib/doc.rake
URL: http://svn.apache.org/viewvc/buildr/trunk/rakelib/doc.rake?rev=758725&r1=758724&r2=758725&view=diff
==============================================================================
--- buildr/trunk/rakelib/doc.rake (original)
+++ buildr/trunk/rakelib/doc.rake Thu Mar 26 16:30:39 2009
@@ -14,21 +14,23 @@
# the License.
-begin # For the Web site, we use the mislav-hanna RDoc theme (http://github.com/mislav/hanna/)
- require 'hanna/rdoctask'
+begin # For the Web site, we use the SDoc RDoc generator/theme (http://github.com/voloko/sdoc/)
+ require 'sdoc'
+rescue LoadError
+ puts "Buildr uses the SDoc RDoc generator/theme. You can install it by running rake setup"
+ task(:setup) { install_gem 'voloko-sdoc', :source=>'http://gems.github.com' }
+end
- desc "Generate RDoc documentation in rdoc/"
- Rake::RDocTask.new :rdoc do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = spec.name
- rdoc.options = spec.rdoc_options.clone
- rdoc.rdoc_files.include('lib/**/*.rb')
- rdoc.rdoc_files.include spec.extra_rdoc_files
- end
-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'
+
+desc "Generate RDoc documentation in rdoc/"
+Rake::RDocTask.new :rdoc do |rdoc|
+ rdoc.rdoc_dir = 'rdoc'
+ rdoc.title = spec.name
+ rdoc.options = spec.rdoc_options.clone + ['--github_url', $github_url]
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ rdoc.rdoc_files.include spec.extra_rdoc_files
end