backbone.rb 550 B

1234567891011121314151617181920
  1. module Docs
  2. class Backbone < UrlScraper
  3. self.name = 'Backbone.js'
  4. self.slug = 'backbone'
  5. self.type = 'underscore'
  6. self.version = '1.1.0'
  7. self.base_url = 'http://backbonejs.org'
  8. html_filters.push 'backbone/clean_html', 'backbone/entries', 'title'
  9. options[:title] = 'Backbone.js'
  10. options[:container] = '.container'
  11. options[:skip_links] = -> (_) { true }
  12. options[:attribution] = <<-HTML
  13. &copy; 2010&ndash;2013 Jeremy Ashkenas, DocumentCloud<br>
  14. Licensed under the MIT License.
  15. HTML
  16. end
  17. end