underscore.rb 599 B

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