react_native.rb 900 B

123456789101112131415161718192021222324252627282930313233
  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.26'
  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] = %w(
  17. videos.html
  18. transforms.html
  19. troubleshooting.html)
  20. options[:fix_urls] = ->(url) {
  21. url.sub! 'docs/docs', 'docs'
  22. url
  23. }
  24. options[:attribution] = <<-HTML
  25. &copy; 2016 Facebook Inc.<br>
  26. Licensed under the Creative Commons Attribution 4.0 International Public License.
  27. HTML
  28. end
  29. end