diff --git a/lib/docs/filters/julia/entries.rb b/lib/docs/filters/julia/entries.rb index 46be86c9..f9774394 100644 --- a/lib/docs/filters/julia/entries.rb +++ b/lib/docs/filters/julia/entries.rb @@ -16,14 +16,21 @@ module Docs def additional_entries return [] unless slug.start_with?('stdlib') - css('.docstring-binding[id]').map do |node| + entries = [] + used_names = {} + + css('.docstring-binding[id]').each do |node| name = node.content name.gsub! '.:', '.' name.remove! 'Base.' category = node.parent.at_css('.docstring-category').content name << '()' if category == 'Function' || category == 'Method' - [name, node['id']] + + entries << [name, node['id']] unless used_names.key?(name) + used_names[name] = true end + + entries end end end