History

Update React Native documentation (0.25)

Thibaut Courouble committed 10 years ago

Commit bca41781 parent 4468f652 files · +18 −1Browse files

Unified · Split

2 files
  1. lib/docs/filters/react_native/clean_html.rb +15 −0
  2. lib/docs/scrapers/react_native.rb +3 −1
lib/docs/filters/react_native/clean_html.rb+15−0
@@ -0,0 +1,15 @@
1+module Docs
2+ class ReactNative
3+ class CleanHtmlFilter < Filter
4+ def call
5+ if root_page?
6+ css('#unsupported + div + center', '#unsupported + div', '#unsupported', '.toggler', 'center > img').remove
7+ end
8+
9+ css('center > .button', 'p:contains("short survey")').remove
10+
11+ doc
12+ end
13+ end
14+ end
15+end
lib/docs/scrapers/react_native.rb+3−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.24'
6+ self.release = '0.25'
77 self.base_url = 'https://facebook.github.io/react-native/docs/'
88 self.root_path = 'getting-started.html'
99 self.links = {
@@ -11,6 +11,8 @@ module Docs · 1 unmodified line
1111 code: 'https://github.com/facebook/react-native'
1212 }
1313
14+ html_filters.push 'react_native/clean_html'
15+
1416 options[:root_title] = 'React Native Documentation'
1517 options[:only_patterns] = nil
1618 options[:skip] = %w(