1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Don't include non-Ruby files in the standard YARD docs.

This commit is contained in:
Nathan Weizenbaum 2009-05-31 20:16:09 -07:00
parent 06c1b3dd35
commit 6f96aebb57

View file

@ -133,15 +133,10 @@ begin
require '/home/nex3/code/yard/lib/yard'
YARD::Rake::YardocTask.new do |t|
files = FileList.new
files.include(*FileList.new('*') do |list|
list.exclude(/(^|[^.a-z])[a-z]+/)
end)
files.include('lib/**/*.rb')
files.exclude('TODO')
files.exclude('lib/haml/template/*.rb')
files.exclude('lib/haml/helpers/action_view_mods.rb')
t.files = files.to_a
t.files = FileList.new('lib/**/*.rb') do |list|
list.exclude('lib/haml/template/*.rb')
list.exclude('lib/haml/helpers/action_view_mods.rb')
end.to_a
t.options += FileList.new('yard/*.rb').to_a.map {|f| ['-e', f]}.flatten
t.options << '--files' << FileList.new('*') do |list|
list.exclude(/(^|[^.a-z])[a-z]+/)