Update React Native documentation (0.16)

pull/309/head
Thibaut 9 years ago
parent 9c05e652f1
commit bb6c116ff7

@ -44,7 +44,7 @@ module Docs
next if name.blank? next if name.blank?
sep = node.content.include?('static') ? '.' : '#' sep = node.content.include?('static') ? '.' : '#'
name.prepend(self.name + sep) name.prepend(self.name + sep)
name << '()' if node.css('.propType').last.content.start_with?('(') name << '()' if (n = node.css('.propType').last) && n.content.start_with?('(')
id = node.at_css('.anchor')['name'] id = node.at_css('.anchor')['name']
entries << [name, id] entries << [name, id]
end end

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

Loading…
Cancel
Save