react_native.rb 945 B

12345678910111213141516171819202122232425262728293031323334
  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.28'
  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. html_filters.push 'react_native/clean_html'
  14. options[:root_title] = 'React Native Documentation'
  15. options[:only_patterns] = nil
  16. options[:skip_patterns] = [/\Asample\-/]
  17. options[:skip] = %w(
  18. videos.html
  19. transforms.html
  20. troubleshooting.html)
  21. options[:fix_urls] = ->(url) {
  22. url.sub! 'docs/docs', 'docs'
  23. url
  24. }
  25. options[:attribution] = <<-HTML
  26. &copy; 2016 Facebook Inc.<br>
  27. Licensed under the Creative Commons Attribution 4.0 International Public License.
  28. HTML
  29. end
  30. end