Unified · Split
| @@ -48,7 +48,7 @@ module Docs · 47 unmodified lines | ||
| 48 | 48 | node.before(node.children).remove |
| 49 | 49 | end |
| 50 | 50 | |
| 51 | − css('a pre').each do |node| | |
| 51 | + css('a pre', 'h3 .propType').each do |node| | |
| 52 | 52 | node.name = 'code' |
| 53 | 53 | end |
| 54 | 54 | |
| @@ -31,6 +31,7 @@ module Docs · 30 unmodified lines | ||
| 31 | 31 | sep = node.content.include?('static') ? '.' : '#' |
| 32 | 32 | name.prepend(self.name + sep) |
| 33 | 33 | name << '()' if node['class'].include?('methodTitle') |
| 34 | + name.remove! %r{\:\s*\z} | |
| 34 | 35 | id = node.at_css('.anchor')['name'] |
| 35 | 36 | entries << [name, id] |
| 36 | 37 | end |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'React Native' |
| 4 | 4 | self.slug = 'react_native' |
| 5 | 5 | self.type = 'react' |
| 6 | − self.release = '0.41' | |
| 6 | + self.release = '0.42' | |
| 7 | 7 | self.base_url = 'https://facebook.github.io/react-native/docs/' |
| 8 | 8 | self.root_path = 'getting-started.html' |
| 9 | 9 | self.links = { |