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')
name = node.at_css('.fnname').content .select {|node| !node.at_css('.fnname').nil?}
name.prepend "#{self.name}::" .map {|node|
[name, node['id']] name = node.at_css('.fnname').content
end name.prepend "#{self.name}::"
[name, node['id']]
}
.uniq {|item| item[0]}
end end
end end
end end

Loading…
Cancel
Save