react_native.rb 851 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class ReactNative < React
  3. self.name = 'React Native'
  4. self.slug = 'react_native'
  5. self.type = 'react'
  6. self.release = '0.22'
  7. self.base_url = 'https://facebook.github.io/react-native/docs/'
  8. self.root_path = 'getting-started.html'
  9. self.links = {
  10. home: 'https://facebook.github.io/react-native/',
  11. code: 'https://github.com/facebook/react-native'
  12. }
  13. options[:root_title] = 'React Native Documentation'
  14. options[:only_patterns] = nil
  15. options[:skip] = %w(
  16. videos.html
  17. transforms.html
  18. troubleshooting.html)
  19. options[:fix_urls] = ->(url) {
  20. url.sub! 'docs/docs', 'docs'
  21. url
  22. }
  23. options[:attribution] = <<-HTML
  24. &copy; 2016 Facebook Inc.<br>
  25. Licensed under the Creative Commons Attribution 4.0 International Public License.
  26. HTML
  27. end
  28. end