History

Update React Native documentation (0.44)

Thibaut Courouble committed 9 years ago

Commit ad2f9a41 parent 60035e23 files · +13 −3Browse files

Unified · Split

3 files
  1. assets/stylesheets/pages/_react.scss +3 −1
  2. lib/docs/filters/react_native/clean_html.rb +9 −1
  3. lib/docs/scrapers/react_native.rb +1 −1
assets/stylesheets/pages/_react.scss+3−1
@@ -4,7 +4,9 @@ · 3 unmodified lines
4 > h4 { @extend %block-label; }4 > h4 { @extend %block-label; }
5 5
6 p code, li code { @extend %label; }6 p code, li code { @extend %label; }
7 blockquote { @extend %note; }7 blockquote, .deprecated { @extend %note; }
8 .deprecated { @extend %note-orange; }
9 .deprecatedTitle { font-weight: $boldFontWeight; }
8 10
9 span.platform { float: right; }11 span.platform { float: right; }
10 span.propType, span.platform { font-weight: normal; }12 span.propType, span.platform { font-weight: normal; }
lib/docs/filters/react_native/clean_html.rb+9−1
@@ -6,12 +6,20 @@ module Docs · 5 unmodified lines
6 css('h1 ~ *').remove6 css('h1 ~ *').remove
7 end7 end
8 8
9 css('center > .button', 'p:contains("short survey")', 'iframe', '.embedded-simulator').remove9 css('center > .button', 'p:contains("short survey")', 'iframe', '.embedded-simulator', '.deprecatedIcon').remove
10 10
11 css('h4.methodTitle').each do |node|11 css('h4.methodTitle').each do |node|
12 node.name = 'h3'12 node.name = 'h3'
13 end13 end
14 14
15 css('div:not([class])', 'span:not([class])').each do |node|
16 node.before(node.children).remove
17 end
18
19 css('ul').each do |node|
20 node.before(node.children).remove if node.at_css('> p', '> h2')
21 end
22
15 doc23 doc
16 end24 end
17 end25 end
lib/docs/scrapers/react_native.rb+1−1
@@ -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.43'6 self.release = '0.44'
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 = {