summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAustin Ziegler <austin@zieglers.ca>2014-10-28 18:59:54 -0400
committerAustin Ziegler <austin@zieglers.ca>2014-10-28 18:59:54 -0400
commit0def5473ae9db186193d608425a3604065a26b3b (patch)
tree4ed9776850e742119c102de1ddd80131a80bec85 /Rakefile
parentfbdde28897b51c9de928fcc82b96709a74f848d8 (diff)
downloadmime-types-0def5473ae9db186193d608425a3604065a26b3b.tar.gz
Fixing a couple of documentation issues.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 9ec18e4..b80d609 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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|