You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
devdocs/lib/docs/scrapers/lodash.rb

21 lines
510 B

module Docs
class Lodash < UrlScraper
self.name = 'Lo-Dash'
self.slug = 'lodash'
self.type = 'lodash'
self.version = '2.4.1'
self.base_url = 'https://lodash.com/docs'
html_filters.push 'lodash/clean_html', 'lodash/entries', 'title'
options[:title] = 'Lo-Dash'
options[:container] = 'h1+div+div'
options[:skip_links] = true
options[:attribution] = <<-HTML
&copy; 2012&ndash;2014 The Dojo Foundation<br>
Licensed under the MIT License.
HTML
end
end