Sha256: 16bebf33666029bb838f35461b36fd03ee6894f7be197f7e690c246861119dbd
Contents?: true
Size: 761 Bytes
Versions: 1
Compression:
Stored size: 761 Bytes
Contents
desc 'Regenerates the contents of the website' task :website do mkpath 'doc/output' Rake::Task[:spec_html].invoke Rake::Task[:rdoc].invoke Rake::Task[:rdoc_dev].invoke Rake::Task[:rcov].invoke WebsiteRakeHelpers.webgen end desc 'Removes generated documentation' task :clobber do WebsiteRakeHelpers.clobber end module WebsiteRakeHelpers module_function # Remove generated documentation. def clobber FileUtils.rm_rf 'doc/output' FileUtils.rm_rf 'doc/tmp' end # Generates the website with webgen. def webgen Dir.chdir 'doc' do output = nil IO.popen('webgen 2>&1') do |io| output = io.read end raise "ERROR while running webgen: #{output}" if output =~ /ERROR/n || $? != 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gecoder-with-gecode-1.1.1.1 | tasks/website.rake |