فهرست منبع

Update HTML documentation

Simon Legner 3 سال پیش
والد
کامیت
df0824a300
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 2 0
      lib/docs/filters/html/entries.rb
  2. 1 1
      lib/docs/scrapers/mdn/html.rb

+ 2 - 0
lib/docs/filters/html/entries.rb

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

+ 1 - 1
lib/docs/scrapers/mdn/html.rb

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