|
|
@ -2,8 +2,7 @@ module Docs
|
|
|
|
class Bower
|
|
|
|
class Bower
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
ENTRIES_TYPE_BY_SLUG = {
|
|
|
|
ENTRIES_TYPE_BY_SLUG = {
|
|
|
|
'api' => 'Commands',
|
|
|
|
'api' => 'Commands'
|
|
|
|
'config' => '.bowerrc'
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def get_name
|
|
|
|
def get_name
|
|
|
@ -17,7 +16,7 @@ module Docs
|
|
|
|
def additional_entries
|
|
|
|
def additional_entries
|
|
|
|
return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]
|
|
|
|
return [] unless type = ENTRIES_TYPE_BY_SLUG[slug]
|
|
|
|
|
|
|
|
|
|
|
|
css('#bowerrc-specification + ul a', '#commands + p + ul a').map do |node|
|
|
|
|
css('#commands + p + ul a').map do |node|
|
|
|
|
[node.content, node['href'].remove('#'), type]
|
|
|
|
[node.content, node['href'].remove('#'), type]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|