Update React Native documentation (0.19)

pull/337/merge
Thibaut Courouble 9 years ago
parent 6e61edd32a
commit 5714492405

@ -10,6 +10,12 @@ module Docs
css('.docs-prevnext', '.hash-link', '.edit-page-link', '.edit-github').remove css('.docs-prevnext', '.hash-link', '.edit-page-link', '.edit-github').remove
css('table h1', 'table h2', 'table h3').each do |node|
table = node
table = table.parent until table.name == 'table'
table.replace(node)
end
css('a.anchor').each do |node| css('a.anchor').each do |node|
node.parent['id'] = node['name'] node.parent['id'] = node['name']
end end

@ -14,7 +14,7 @@ module Docs
} }
def get_name def get_name
at_css('h1').child.content at_css('h1').children.select(&:text?).map(&:content).join.strip
end end
def get_type def get_type

@ -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.release = '0.18' self.release = '0.19'
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