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

32 lines
730 B

11 years ago
module Docs
class Lodash < UrlScraper
self.name = 'lodash'
11 years ago
self.slug = 'lodash'
self.type = 'lodash'
self.links = {
home: 'https://lodash.com/',
code: 'https://github.com/lodash/lodash/'
}
11 years ago
html_filters.push 'lodash/entries', 'lodash/clean_html', 'title'
11 years ago
options[:title] = 'lodash'
options[:skip_links] = true
11 years ago
options[:attribution] = <<-HTML
&copy; 2012&ndash;2016 The Dojo Foundation<br>
11 years ago
Licensed under the MIT License.
HTML
version '4' do
self.release = '4.15.0'
self.base_url = 'https://lodash.com/docs'
end
version '3' do
self.release = '3.10.0'
self.base_url = 'https://lodash.com/docs' # OUT-OF-DATE
end
11 years ago
end
end