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
44 > h4 { @extend %block-label; }
55
66 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; }
810
911 span.platform { float: right; }
1012 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
66 css('h1 ~ *').remove
77 end
88
9− css('center > .button', 'p:contains("short survey")', 'iframe', '.embedded-simulator').remove
9+ css('center > .button', 'p:contains("short survey")', 'iframe', '.embedded-simulator', '.deprecatedIcon').remove
1010
1111 css('h4.methodTitle').each do |node|
1212 node.name = 'h3'
1313 end
1414
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+
1523 doc
1624 end
1725 end
lib/docs/scrapers/react_native.rb+1−1
@@ -3,7 +3,7 @@ module Docs · 2 unmodified lines
33 self.name = 'React Native'
44 self.slug = 'react_native'
55 self.type = 'react'
6− self.release = '0.43'
6+ self.release = '0.44'
77 self.base_url = 'https://facebook.github.io/react-native/docs/'
88 self.root_path = 'getting-started.html'
99 self.links = {