Sha256: 6fc8f13638f5fe991e17d8ddaf994450310012ee10f033faef6b2db76c620197

Contents?: true

Size: 696 Bytes

Versions: 1

Compression:

Stored size: 696 Bytes

Contents

# require "~/src/zenn/lib/default_task"

require "bundler/gem_tasks"

Pathname.glob("lib/source2md/tasks/**/*.rake").each { |file| load(file) }

task :g => "doc:generate"
task :r => "doc:renum"
task :o => "open"

namespace :doc do
  desc "[g] generate README.md"
  task "generate" do
    Rake::Task["doc:renum"].execute
    system "sh", "-vec", <<~EOT, exception: true
.bin/source2md generate --no-debug --xmp-out-exclude --prefix_re '^' -o README.md doc/0*
EOT
  end

  desc "renumber"
  task :renum do
    system "sh", "-vec", <<~EOT, exception: true
saferenum -x doc
EOT
  end
end

task :open do
  system "sh", "-vec", <<~EOT, exception: true
open https://github.com/akicho8/source2md
EOT
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
source2md-0.0.19 Rakefile