diff --git a/lib/docs/filters/nim/entries.rb b/lib/docs/filters/nim/entries.rb index 7461ab5f..e5ef24ef 100644 --- a/lib/docs/filters/nim/entries.rb +++ b/lib/docs/filters/nim/entries.rb @@ -55,7 +55,8 @@ module Docs css('.simple-toc-section a, .nested-toc-section a').each do |node| entry_name = node.content - entry_name.gsub!(/,.*/, '') + entry_name.gsub!(/(\(|\[).*/, '') + entry_id = slug + node['href'] entries << [entry_name, entry_id, name] end