mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
31 lines
851 B
Ruby
31 lines
851 B
Ruby
module Docs
|
|
class ReactNative < React
|
|
self.name = 'React Native'
|
|
self.slug = 'react_native'
|
|
self.type = 'react'
|
|
self.release = '0.24'
|
|
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
|
|
}
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2016 Facebook Inc.<br>
|
|
Licensed under the Creative Commons Attribution 4.0 International Public License.
|
|
HTML
|
|
end
|
|
end
|