Browse Source

Update React documentation (16.3.0)

Thibaut Courouble 7 years ago
parent
commit
a94991071e
2 changed files with 2 additions and 1 deletions
  1. 1 0
      lib/docs/filters/react/entries.rb
  2. 1 1
      lib/docs/scrapers/react.rb

+ 1 - 0
lib/docs/filters/react/entries.rb

@@ -7,6 +7,7 @@ module Docs
 
       def get_type
         link = at_css("nav a[href='#{result[:path].split('/').last}']")
+        return 'Miscellaneous' unless link
         link.ancestors('ul').last.previous_element.content
       end
 

+ 1 - 1
lib/docs/scrapers/react.rb

@@ -2,7 +2,7 @@ module Docs
   class React < UrlScraper
     self.name = 'React'
     self.type = 'simple'
-    self.release = '16.2.0'
+    self.release = '16.3.0'
     self.base_url = 'https://reactjs.org/docs/'
     self.root_path = 'hello-world.html'
     self.links = {