Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… textile documentation markup.
  • Loading branch information...
commit 6bf5f7438bd9fb67f019c71c94f995cbb1c97e00 1 parent 0583e0e
@postmodern postmodern authored committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/jeweler/templates/other_tasks.erb
View
11 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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.