Permalink
Browse files

Make sure to specify the --markup yard option, when using markdown or…

… textile documentation markup.
  • Loading branch information...
1 parent 0583e0e commit 6bf5f7438bd9fb67f019c71c94f995cbb1c97e00 @postmodern postmodern committed with Feb 5, 2010
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/jeweler/templates/other_tasks.erb
@@ -82,5 +82,16 @@ Rake::RDocTask.new do |rdoc|
end
<% when :yard %>
require 'yard'
+ <% case documentation_markup %>
+ <% when :markdown %>
+YARD::Rake::YardocTask.new do |t|
+ t.options = ['--markup', 'markdown']
+end
+ <% when :textile %>
+YARD::Rake::YardocTask.new do |t|
+ t.options = ['--markup', 'textile']
+end
+ <% else %>
YARD::Rake::YardocTask.new
+ <% end %>
<% end %>

0 comments on commit 6bf5f74

Please sign in to comment.