|
|
@ -14,18 +14,20 @@ module Docs
|
|
|
|
entries = []
|
|
|
|
entries = []
|
|
|
|
|
|
|
|
|
|
|
|
css('h3 > code, h4 > code, h5 > code').each do |node|
|
|
|
|
css('h3 > code, h4 > code, h5 > code').each do |node|
|
|
|
|
|
|
|
|
name = node.content.gsub(/\(.*\)/, '()')
|
|
|
|
|
|
|
|
id = node.parent['id']
|
|
|
|
|
|
|
|
|
|
|
|
case node.parent.child.content
|
|
|
|
case node.parent.child.content
|
|
|
|
when /Class/
|
|
|
|
when /Class/
|
|
|
|
entries << ["Class #{node.parent['id']}", node.parent['id'], type]
|
|
|
|
entries << ["Class #{name}", id, type]
|
|
|
|
when /Event/
|
|
|
|
when /Event/
|
|
|
|
entries << ["Event #{node.parent['id']}", node.parent['id'], type]
|
|
|
|
entries << ["Event #{name}", id, type]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if node.parent.child.is_a?(Nokogiri::XML::Text)
|
|
|
|
if node.parent.child.is_a?(Nokogiri::XML::Text)
|
|
|
|
next
|
|
|
|
next
|
|
|
|
else
|
|
|
|
else
|
|
|
|
entries << [node.parent['id'], node.parent['id'], type]
|
|
|
|
entries << [name, id, type]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|