Sha256: ff187b7a2ae402750b7d2ca2677da403b433138a1e5e8a06a002f371a0788391
Contents?: true
Size: 524 Bytes
Versions: 13
Compression:
Stored size: 524 Bytes
Contents
require 'yard' require 'yard/rake/yardoc_task' require 'rake/application' require 'fileutils' # Main namespace for Shippo specific Rake tasks module Shippo DOC_FOLDER = 'doc' end YARD::Rake::YardocTask.new do |t| t.files = %w(lib/**/*.rb - README.md CHANGELOG.md) end namespace :doc do desc 'Generate API documentation and preview in browser' task :read do FileUtils.rm_rf([::Shippo::DOC_FOLDER]) Rake.application.invoke_task('yard') Kernel.system("open #{::Shippo::DOC_FOLDER}/index.html") end end
Version data entries
13 entries across 13 versions & 1 rubygems