Sha256: bda127195a00731aaab99981c0d064e84a47cbdc2b9f57bae7d3eafbc990836c
Contents?: true
Size: 735 Bytes
Versions: 5
Compression:
Stored size: 735 Bytes
Contents
begin require 'yard' rescue LoadError require 'rubygems' unless ENV['NO_RUBYGEMS'] require 'yard' end begin require 'yard/rake/yardoc_task' rescue LoadError puts <<-EOS To use yard you must install the gem: gem install yard EOS exit(0) end namespace :yard do desc "Create yardoc documentation" YARD::Rake::YardocTask.new :generate do |t| t.files = ['lib/**/*.rb'] t.options = ['--output-dir', "meta/documentation" ] end YARD::Rake::YardocTask.new :dot_yardoc do |t| t.files = ['lib/**/*.rb'] t.options = ['--no-output', '--readme', 'README.mkdn'] end task :open do system 'open ' + 'meta' / 'documentation' / 'index.html' if PLATFORM['darwin'] end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
build-tool-0.1.4 | tasks/rdoc.rake |
build-tool-0.1.3 | tasks/rdoc.rake |
build-tool-0.1.2 | tasks/rdoc.rake |
build-tool-0.1.0 | tasks/rdoc.rake |
build-tool-0.1.1 | tasks/rdoc.rake |