[devdocsgjs/main: 40/64] Update HTML documentation



commit df0824a300d86c6749d701229f4c096020c366d0
Author: Simon Legner <Simon Legner gmail com>
Date:   Wed Apr 27 19:06:25 2022 +0200

    Update HTML documentation

 lib/docs/filters/html/entries.rb | 2 ++
 lib/docs/scrapers/mdn/html.rb    | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/lib/docs/filters/html/entries.rb b/lib/docs/filters/html/entries.rb
index 3aac731b..b018d908 100644
--- a/lib/docs/filters/html/entries.rb
+++ b/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']
diff --git a/lib/docs/scrapers/mdn/html.rb b/lib/docs/scrapers/mdn/html.rb
index 488465c6..9a72cd3c 100644
--- a/lib/docs/scrapers/mdn/html.rb
+++ b/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'
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]