summaryrefslogtreecommitdiff
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
parentfbdde28897b51c9de928fcc82b96709a74f848d8 (diff)
downloadgit-0def5473ae9db186193d608425a3604065a26b3b.tar.gz
Fixing a couple of documentation issues.
-rw-r--r--README.rdoc2
-rw-r--r--Rakefile14
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.
diff --git a/Rakefile b/Rakefile
index 9ec18e448e..b80d609ac4 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|