Unified · Split
| @@ -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 | ||
| @@ -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.24' | 6 | self.release = '0.25' |
| 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 = { |
| @@ -11,6 +11,8 @@ module Docs · 1 unmodified line | |||
| 11 | code: 'https://github.com/facebook/react-native' | 11 | code: 'https://github.com/facebook/react-native' |
| 12 | } | 12 | } |
| 13 | 13 | ||
| 14 | html_filters.push 'react_native/clean_html' | ||
| 15 | |||
| 14 | options[:root_title] = 'React Native Documentation' | 16 | options[:root_title] = 'React Native Documentation' |
| 15 | options[:only_patterns] = nil | 17 | options[:only_patterns] = nil |
| 16 | options[:skip] = %w( | 18 | options[:skip] = %w( |