devdocs/lib/docs/scrapers/react_native.rb

32 lines
851 B
Ruby
Raw Normal View History

2015-08-08 18:49:18 +02:00
module Docs
class ReactNative < React
self.name = 'React Native'
self.slug = 'react_native'
self.type = 'react'
self.release = '0.24'
2015-08-08 18:49:18 +02:00
self.base_url = 'https://facebook.github.io/react-native/docs/'
self.root_path = 'getting-started.html'
self.links = {
home: 'https://facebook.github.io/react-native/',
code: 'https://github.com/facebook/react-native'
}
options[:root_title] = 'React Native Documentation'
options[:only_patterns] = nil
options[:skip] = %w(
videos.html
transforms.html
troubleshooting.html)
options[:fix_urls] = ->(url) {
url.sub! 'docs/docs', 'docs'
url
}
2015-08-08 18:49:18 +02:00
options[:attribution] = <<-HTML
&copy; 2016 Facebook Inc.<br>
2015-08-08 18:49:18 +02:00
Licensed under the Creative Commons Attribution 4.0 International Public License.
HTML
end
end