publish_doc.rake.erb 551 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. # -*- frozen_string_literal: true -*-
  3. namespace :doc do
  4. desc "Publish online documentation"
  5. task :publish => ["doc:build"] do
  6. FileUtils.mkdir "public"
  7. FileUtils.cp_r "./doc/.", "public"
  8. end
  9. end
  10. RDoc::Task.new(rdoc: "doc:build", clobber_rdoc: "doc:remove", rerdoc: "doc:rebuild") do |d|
  11. d.generator = "hanna"
  12. d.rdoc_dir = "doc"
  13. d.rdoc_files.include(*<%= @scaffold.namespace %>::Doc.files).include(*<%= @scaffold.namespace %>::Doc.appendices)
  14. d.options = <%= @scaffold.namespace %>::Doc.build_options
  15. end