Sha256: a78a3260a18981d63a9013090502a81f4ab3779b14a46816dad8bca9fde88706
Contents?: true
Size: 983 Bytes
Versions: 6
Compression:
Stored size: 983 Bytes
Contents
# # RDoc Rake tasks # $Id: rdoc.rb 93 2009-03-20 13:02:30Z deveiant $ # gem 'rdoc', '>= 2.4.1' require 'rubygems' require 'rdoc/rdoc' require 'rake/clean' # Append docs/lib to the load path if it exists for a locally-installed Darkfish DOCSLIB = DOCSDIR + 'lib' $LOAD_PATH.unshift( DOCSLIB.to_s ) if DOCSLIB.exist? # Make relative string paths of all the stuff we need to generate docs for DOCFILES = LIB_FILES + EXT_FILES + GEMSPEC.extra_rdoc_files directory RDOCDIR.to_s CLOBBER.include( RDOCDIR ) desc "Build API documentation in #{RDOCDIR}" task :rdoc => [ Rake.application.rakefile, *DOCFILES ] do args = RDOC_OPTIONS args += [ '-o', RDOCDIR.to_s ] args += [ '-f', 'darkfish' ] args += DOCFILES.collect {|pn| pn.to_s } trace "Building docs with arguments: %s" % [ args.join(' ') ] RDoc::RDoc.new.document( args ) rescue nil end desc "Rebuild API documentation in #{RDOCDIR}" task :rerdoc do rm_r( RDOCDIR ) if RDOCDIR.exist? Rake::Task[ :rdoc ].invoke end
Version data entries
6 entries across 6 versions & 2 rubygems
Version | Path |
---|---|
bluecloth-2.0.0 | rake/rdoc.rb |
bluecloth-2.0.1 | rake/rdoc.rb |
bluecloth-2.0.2 | rake/rdoc.rb |
bluecloth-2.0.3 | rake/rdoc.rb |
bluecloth-2.0.4 | rake/rdoc.rb |
linkparser-1.0.4 | rake/rdoc.rb |