Unified · Split
| @@ -19,6 +19,7 @@ module Docs · 18 unmodified lines | |||
| 19 | 19 | ||
| 20 | def get_type | 20 | def get_type |
| 21 | link = at_css('.nav-docs-section .active, .toc .active') | 21 | link = at_css('.nav-docs-section .active, .toc .active') |
| 22 | return 'Miscellaneous' unless link | ||
| 22 | section = link.ancestors('.nav-docs-section, section').first | 23 | section = link.ancestors('.nav-docs-section, section').first |
| 23 | type = section.at_css('h3').content.strip | 24 | type = section.at_css('h3').content.strip |
| 24 | type = REPLACE_TYPES[type] || type | 25 | type = REPLACE_TYPES[type] || type |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | |||
| 3 | self.name = 'React Native' | 3 | self.name = 'React Native' |
| 4 | self.slug = 'react_native' | 4 | self.slug = 'react_native' |
| 5 | self.type = 'react' | 5 | self.type = 'react' |
| 6 | self.release = '0.25' | 6 | self.release = '0.26' |
| 7 | self.base_url = 'https://facebook.github.io/react-native/docs/' | 7 | self.base_url = 'https://facebook.github.io/react-native/docs/' |
| 8 | self.root_path = 'getting-started.html' | 8 | self.root_path = 'getting-started.html' |
| 9 | self.links = { | 9 | self.links = { |