1
0

react.rb 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. module Docs
  2. class React < UrlScraper
  3. self.name = 'React'
  4. self.type = 'react'
  5. self.release = '15.4.2'
  6. self.base_url = 'https://facebook.github.io/react/docs/'
  7. self.root_path = 'hello-world.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[:replace_paths] = {
  16. 'top-level-api.html' => 'react-api.html',
  17. 'working-with-the-browser.html' => 'refs-and-the-dom.html',
  18. 'interactivity-and-dynamic-uis.html' => 'state-and-lifecycle.html',
  19. 'more-about-refs.html' => 'refs-and-the-dom.html',
  20. 'advanced-performance.html' => 'optimizing-performance.html',
  21. 'component-api.html' => 'react-component.html',
  22. 'component-specs.html' => 'react-component.html',
  23. 'multiple-components.html' => 'composition-vs-inheritance.html',
  24. }
  25. options[:attribution] = <<-HTML
  26. &copy; 2013&ndash;2017 Facebook Inc.<br>
  27. Licensed under the Creative Commons Attribution 4.0 International Public License.
  28. HTML
  29. end
  30. end