Sha256: 69ad035d3933fc436b71457d73dbd7c3fc1a69bc80aeba4b9108f0b8fbbe3696

Contents?: true

Size: 911 Bytes

Versions: 15

Compression:

Stored size: 911 Bytes

Contents

require 'tasks/config'

#-----------------------------------------------------------------------
# Documentation
#-----------------------------------------------------------------------

if rdoc_config = Configuration.for_if_exist?('rdoc') then

  namespace :doc do

    require 'rake/rdoctask'

    # generating documentation locally
    Rake::RDocTask.new do |rdoc|
      rdoc.rdoc_dir   = rdoc_config.output_dir
      rdoc.options    = rdoc_config.options
      rdoc.rdoc_files = rdoc_config.files
      rdoc.title      = rdoc_config.title
      rdoc.main       = rdoc_config.main_page
    end 

    if rubyforge_config = Configuration.for_if_exist?('rubyforge') then
      desc "Deploy the RDoc documentation to #{rubyforge_config.rdoc_location}"
      task :deploy => :rerdoc do
        sh "rsync -zav --delete #{rdoc_config.output_dir}/ #{rubyforge_config.rdoc_location}"
      end 
    end 

  end 
end

Version data entries

15 entries across 14 versions & 5 rubygems

Version Path
amalgalite-0.2.0 tasks/documentation.rake
amalgalite-0.1.0 tasks/documentation.rake
amalgalite-0.2.1 tasks/documentation.rake
amalgalite-0.2.3 tasks/documentation.rake
amalgalite-0.2.2 tasks/documentation.rake
amalgalite-0.2.4 tasks/documentation.rake
amalgalite-0.4.0 tasks/documentation.rake
crate-0.1.1 tasks/documentation.rake
crate-0.2.1 tasks/documentation.rake
htauth-1.0.3 tasks/documentation.rake
htauth-1.0.2 tasks/documentation.rake
rabal-0.3.3 tasks/documentation.rake
rabal-0.3.3 resources/trees/core/tasks/documentation.rake.erb
stickler-0.1.0 tasks/documentation.rake
stickler-0.1.1 tasks/documentation.rake