|
|
|
@ -37,12 +37,14 @@ module Docs
|
|
|
|
|
css('.standard-table td:first-child').each_with_object [] do |node, entries|
|
|
|
|
|
next if node.next_element.content.include?('Global attribute')
|
|
|
|
|
name = "#{node.content.strip} (attribute)"
|
|
|
|
|
name = "#{node.at_css('code').content.strip} (attribute)" if node.at_css('code')
|
|
|
|
|
id = node.parent['id'] = name.parameterize
|
|
|
|
|
entries << [name, id, 'Attributes']
|
|
|
|
|
end
|
|
|
|
|
elsif slug == 'Link_types'
|
|
|
|
|
css('.standard-table td:first-child > code').map do |node|
|
|
|
|
|
name = node.content.strip
|
|
|
|
|
name = "#{node.at_css('code').content.strip} (attribute)" if node.at_css('code')
|
|
|
|
|
id = node.parent.parent['id'] = name.parameterize
|
|
|
|
|
name.prepend 'rel: '
|
|
|
|
|
[name, id, 'Attributes']
|
|
|
|
|