|
|
|
@ -13,8 +13,11 @@ module Docs
|
|
|
|
|
meta = Nokogiri::XML::Node.new 'dl', doc.document
|
|
|
|
|
meta['class'] = 'meta'
|
|
|
|
|
|
|
|
|
|
if parent = at_css('#parent-class-section')
|
|
|
|
|
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{parent.at_css('.link').inner_html.strip}</dd>)
|
|
|
|
|
parent = at_css('#parent-class-section')
|
|
|
|
|
if parent && link = parent.at_css('.link')
|
|
|
|
|
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{link.inner_html.strip}</dd>)
|
|
|
|
|
elsif parent && link = parent.at_css('a')
|
|
|
|
|
meta << %(<dt>Parent:</dt><dd class="meta-parent">#{link.to_html}</dd>)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if includes = at_css('#includes-section')
|
|
|
|
|