mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Add support for custom YARD doc titles (for websites).
This commit is contained in:
parent
f4ea9e0363
commit
aa1befffa9
1 changed files with 1 additions and 0 deletions
1
Rakefile
1
Rakefile
|
@ -247,6 +247,7 @@ begin
|
||||||
files = FileList.new(scope('doc-src/*')).to_a.sort_by {|s| s.size} + %w[MIT-LICENSE VERSION]
|
files = FileList.new(scope('doc-src/*')).to_a.sort_by {|s| s.size} + %w[MIT-LICENSE VERSION]
|
||||||
t.options << '--files' << files.join(',')
|
t.options << '--files' << files.join(',')
|
||||||
t.options << '--template-path' << scope('yard')
|
t.options << '--template-path' << scope('yard')
|
||||||
|
t.options << '--title' << ENV["YARD_TITLE"] if ENV["YARD_TITLE"]
|
||||||
end
|
end
|
||||||
Rake::Task['yard'].prerequisites.insert(0, 'yard:sass')
|
Rake::Task['yard'].prerequisites.insert(0, 'yard:sass')
|
||||||
Rake::Task['yard'].instance_variable_set('@comment', nil)
|
Rake::Task['yard'].instance_variable_set('@comment', nil)
|
||||||
|
|
Loading…
Reference in a new issue