Update HTML documentation

pull/1740/head
Simon Legner 3 years ago
parent 2aac205885
commit df0824a300

@ -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']

@ -2,7 +2,7 @@ module Docs
class Html < Mdn
prepend FixInternalUrlsBehavior
# release = '2022-01-22'
# release = '2022-04-27'
self.name = 'HTML'
self.base_url = 'https://developer.mozilla.org/en-US/docs/Web/HTML'

Loading…
Cancel
Save