1
0

requirejs.rb 711 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Requirejs < UrlScraper
  3. self.name = 'RequireJS'
  4. self.type = 'requirejs'
  5. self.version = '2.1.15'
  6. self.base_url = 'http://requirejs.org/docs/'
  7. self.root_path = 'api.html'
  8. self.initial_paths = %w(
  9. optimization.html
  10. jquery.html
  11. node.html
  12. dojo.html
  13. commonjs.html
  14. plugins.html
  15. why.html
  16. whyamd.html)
  17. html_filters.push 'requirejs/clean_html', 'requirejs/entries'
  18. options[:container] = '#content'
  19. options[:follow_links] = false
  20. options[:only] = self.initial_paths
  21. options[:attribution] = <<-HTML
  22. &copy; 2010&ndash;2014 The Dojo Foundation<br>
  23. Licensed under the MIT License.
  24. HTML
  25. end
  26. end