|
|
@ -3,7 +3,7 @@ module Docs
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
class EntriesFilter < Docs::EntriesFilter
|
|
|
|
def get_name
|
|
|
|
def get_name
|
|
|
|
name = at_css('h1').content
|
|
|
|
name = at_css('h1').content
|
|
|
|
name.sub! %r{\s*#\s*}, ''
|
|
|
|
name.sub! %r{\s*#\s*|\s*\u200B\s*}, ''
|
|
|
|
name
|
|
|
|
name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
@ -14,7 +14,7 @@ module Docs
|
|
|
|
def additional_entries
|
|
|
|
def additional_entries
|
|
|
|
css('h2, h3').each_with_object [] do |node, entries|
|
|
|
|
css('h2, h3').each_with_object [] do |node, entries|
|
|
|
|
type = node.content.strip
|
|
|
|
type = node.content.strip
|
|
|
|
type.sub! %r{\s*#\s*}, ''
|
|
|
|
type.sub! %r{\s*#\s*|\s*\u200B\s*}, ''
|
|
|
|
entries << ["#{name}: #{type}", node['id']]
|
|
|
|
entries << ["#{name}: #{type}", node['id']]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|