|
@@ -7,8 +7,10 @@ module Docs
|
|
|
doc.children.each_with_object [] do |node, entries|
|
|
doc.children.each_with_object [] do |node, entries|
|
|
|
if node.name == 'h2'
|
|
if node.name == 'h2'
|
|
|
type = node.content
|
|
type = node.content
|
|
|
|
|
+ entries << [type, node['id'], 'Application'] if type == 'Middleware'
|
|
|
next
|
|
next
|
|
|
elsif node.name == 'h3'
|
|
elsif node.name == 'h3'
|
|
|
|
|
+ next if type == 'Middleware'
|
|
|
name = node.content.strip
|
|
name = node.content.strip
|
|
|
name.sub! %r{\(.+\)}, '()'
|
|
name.sub! %r{\(.+\)}, '()'
|
|
|
|
|
|