jquery.rb 468 B

12345678910111213141516171819
  1. module Docs
  2. class Jquery < UrlScraper
  3. self.abstract = true
  4. self.type = 'jquery'
  5. html_filters.push 'jquery/clean_html', 'title'
  6. text_filters.push 'jquery/clean_urls'
  7. options[:title] = false
  8. options[:container] = '#content'
  9. options[:trailing_slash] = false
  10. options[:skip_patterns] = [/category/]
  11. options[:attribution] = <<-HTML
  12. &copy; 2013 The jQuery Foundation<br>
  13. Licensed under the MIT License.
  14. HTML
  15. end
  16. end