浏览代码

Update React Native documentation (0.26)

Thibaut Courouble 9 年之前
父节点
当前提交
f175350ec1
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      lib/docs/filters/react/entries.rb
  2. 1 1
      lib/docs/scrapers/react_native.rb

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

@@ -19,6 +19,7 @@ module Docs
 
       def get_type
         link = at_css('.nav-docs-section .active, .toc .active')
+        return 'Miscellaneous' unless link
         section = link.ancestors('.nav-docs-section, section').first
         type = section.at_css('h3').content.strip
         type = REPLACE_TYPES[type] || type

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

@@ -3,7 +3,7 @@ module Docs
     self.name = 'React Native'
     self.slug = 'react_native'
     self.type = 'react'
-    self.release = '0.25'
+    self.release = '0.26'
     self.base_url = 'https://facebook.github.io/react-native/docs/'
     self.root_path = 'getting-started.html'
     self.links = {