react.rb 760 B

12345678910111213141516171819202122232425262728
  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 = 'http://facebook.github.io/react/docs/'
  7. self.root_path = 'getting-started.html'
  8. self.links = {
  9. home: 'http://facebook.github.io/react/',
  10. code: 'https://github.com/facebook/react'
  11. }
  12. html_filters.push 'react/entries', 'react/clean_html'
  13. options[:container] = '.documentationContent'
  14. options[:skip] = %w(
  15. videos.html
  16. complementary-tools.html
  17. examples.html
  18. conferences.html)
  19. options[:attribution] = <<-HTML
  20. &copy; 2013&ndash;2015 Facebook Inc.<br>
  21. Licensed under the Creative Commons Attribution 4.0 International Public License.
  22. HTML
  23. end
  24. end