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 | |
parent | fbdde28897b51c9de928fcc82b96709a74f848d8 (diff) | |
download | git-0def5473ae9db186193d608425a3604065a26b3b.tar.gz |
Fixing a couple of documentation issues.
-rw-r--r-- | README.rdoc | 2 | ||||
-rw-r--r-- | Rakefile | 14 |
2 files changed, 13 insertions, 3 deletions
diff --git a/README.rdoc b/README.rdoc index 16a664f1f8..ed68b42921 100644 --- a/README.rdoc +++ b/README.rdoc @@ -19,7 +19,7 @@ HTTP traffic, to indicate the type of content which is transmitted. The mime-types library provides the ability for detailed information about MIME entities (provided as an enumerable collection of MIME::Type objects) to be determined and used programmatically. There are many types defined by RFCs and -vendors, so the list is long but by definition incomplete; don't hesitate to to +vendors, so the list is long but by definition incomplete; don't hesitate to add additional type definitions (see Contributing.rdoc). The primary sources for MIME type definitions found in mime-types is the IANA collection of registrations (see below for the link), RFCs, and W3C recommendations. @@ -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| |