underscore.rb 717 B

123456789101112131415161718192021222324
  1. module Docs
  2. class Underscore < UrlScraper
  3. self.name = 'Underscore.js'
  4. self.slug = 'underscore'
  5. self.type = 'underscore'
  6. self.release = '1.9.0'
  7. self.base_url = 'http://underscorejs.org'
  8. self.links = {
  9. home: 'http://underscorejs.org',
  10. code: 'https://github.com/jashkenas/underscore'
  11. }
  12. html_filters.push 'underscore/clean_html', 'underscore/entries', 'title'
  13. options[:title] = 'Underscore.js'
  14. options[:container] = '#documentation'
  15. options[:skip_links] = true
  16. options[:attribution] = <<-HTML
  17. &copy; 2009&ndash;2017 Jeremy Ashkenas, DocumentCloud and Investigative Reporters &amp; Editors<br>
  18. Licensed under the MIT License.
  19. HTML
  20. end
  21. end