devdocs/lib/docs/scrapers/jquery/jquery.rb
2017-03-25 12:26:57 -04:00

18 lines
467 B
Ruby

module Docs
class Jquery < UrlScraper
self.abstract = true
self.type = 'jquery'
html_filters.push 'jquery/clean_html', 'title'
options[:title] = false
options[:container] = '#content'
options[:trailing_slash] = false
options[:skip_patterns] = [/deprecated/, /category\/version/]
options[:attribution] = <<-HTML
&copy; The jQuery Foundation and other contributors<br>
Licensed under the MIT License.
HTML
end
end