react.rb 926 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class React < UrlScraper
  3. self.name = 'React'
  4. self.type = 'react'
  5. self.version = '0.13.3'
  6. self.base_url = 'https://facebook.github.io/react/'
  7. self.root_path = 'docs/getting-started.html'
  8. self.links = {
  9. home: 'https://facebook.github.io/react/',
  10. code: 'https://github.com/facebook/react'
  11. }
  12. html_filters.push 'react/entries', 'react/clean_html'
  13. options[:root_title] = 'React Documentation'
  14. options[:container] = '.documentationContent'
  15. options[:only_patterns] = [/\Adocs\//, /\Atips\//]
  16. options[:skip] = %w(
  17. docs/
  18. docs/videos.html
  19. docs/complementary-tools.html
  20. docs/examples.html
  21. docs/conferences.html
  22. tips/introduction.html)
  23. options[:attribution] = <<-HTML
  24. &copy; 2013&ndash;2015 Facebook Inc.<br>
  25. Licensed under the Creative Commons Attribution 4.0 International Public License.
  26. HTML
  27. end
  28. end