react.rb 616 B

1234567891011121314151617181920212223
  1. module Docs
  2. class React < UrlScraper
  3. self.name = 'React'
  4. self.type = 'react'
  5. self.version = '0.12.2'
  6. self.base_url = 'http://facebook.github.io/react/docs/'
  7. self.root_path = 'getting-started.html'
  8. html_filters.push 'react/entries', 'react/clean_html'
  9. options[:container] = '.documentationContent'
  10. options[:skip] = %w(
  11. videos.html
  12. complementary-tools.html
  13. examples.html)
  14. options[:attribution] = <<-HTML
  15. &copy; 2013&ndash;2014 Facebook Inc.<br>
  16. Licensed under the Creative Commons Attribution 4.0 International Public License.
  17. HTML
  18. end
  19. end