Fix Rust entries

pull/885/merge
Jasper van Merle 6 years ago committed by Thibaut Courouble
parent ffc367454c
commit 3dbc6052bf

@ -42,11 +42,14 @@ module Docs
entries << [node.content, node['id']] unless node.content.include?('Note:') entries << [node.content, node['id']] unless node.content.include?('Note:')
end end
else else
css('#methods + * + div > .method', '#required-methods + div > .method', '#provided-methods + div > .method').map do |node| css('.method')
.select {|node| !node.at_css('.fnname').nil?}
.map {|node|
name = node.at_css('.fnname').content name = node.at_css('.fnname').content
name.prepend "#{self.name}::" name.prepend "#{self.name}::"
[name, node['id']] [name, node['id']]
end }
.uniq {|item| item[0]}
end end
end end
end end

Loading…
Cancel
Save