diff options
author | Austin Ziegler <austin@zieglers.ca> | 2014-10-28 18:59:54 -0400 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2014-10-28 18:59:54 -0400 |
commit | 0def5473ae9db186193d608425a3604065a26b3b (patch) | |
tree | 4ed9776850e742119c102de1ddd80131a80bec85 /Rakefile | |
parent | fbdde28897b51c9de928fcc82b96709a74f848d8 (diff) | |
download | mime-types-0def5473ae9db186193d608425a3604065a26b3b.tar.gz |
Fixing a couple of documentation issues.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -2,6 +2,7 @@ require 'rubygems' require 'hoe' +require 'rake/clean' Hoe.plugin :doofus Hoe.plugin :gemspec2 @@ -117,16 +118,25 @@ namespace :convert do end %w(README History History-Types).each do |name| - file "#{name}.md" => [ "#{name}.rdoc", :setup ] do |t| + rdoc = "#{name}.rdoc" + mark = "#{name}.md" + + file mark => [ rdoc, :setup ] do |t| + puts "#{rdoc} => #{mark}" File.open(t.name, 'wb') { |target| target.write @doc_converter.convert(IO.read(t.prerequisites.first)) } end - task docs: [ name ] + CLEAN.add mark + + task run: [ mark ] end end + desc "Convert documentation from RDoc to Markdown" + task docs: 'convert:docs:run' + namespace :yaml do desc "Convert from YAML to JSON" task :json, [ :source, :destination, :multiple_files ] => :support do |t, args| |