mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add the ability to pass custom YARD options in to rake doc.
This commit is contained in:
parent
a4a973cc70
commit
c974e284dd
1 changed files with 4 additions and 0 deletions
4
Rakefile
4
Rakefile
|
@ -248,6 +248,10 @@ begin
|
|||
t.options << '--files' << files.join(',')
|
||||
t.options << '--template-path' << scope('yard')
|
||||
t.options << '--title' << ENV["YARD_TITLE"] if ENV["YARD_TITLE"]
|
||||
if ENV["YARD_OPTS"]
|
||||
require 'shellwords'
|
||||
t.options.concat(Shellwords.shellwords(ENV["YARD_OPTS"]))
|
||||
end
|
||||
end
|
||||
Rake::Task['yard'].prerequisites.insert(0, 'yard:sass')
|
||||
Rake::Task['yard'].instance_variable_set('@comment', nil)
|
||||
|
|
Loading…
Reference in a new issue