react_native.rb 1018 B

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