lodash.rb 577 B

1234567891011121314151617181920212223
  1. module Docs
  2. class Lodash < UrlScraper
  3. self.name = 'lodash'
  4. self.slug = 'lodash'
  5. self.type = 'lodash'
  6. self.version = '3.5.0'
  7. self.base_url = 'https://lodash.com/docs'
  8. self.links = {
  9. home: 'https://lodash.com/',
  10. code: 'https://github.com/lodash/lodash/'
  11. }
  12. html_filters.push 'lodash/entries', 'lodash/clean_html', 'title'
  13. options[:title] = 'lodash'
  14. options[:skip_links] = true
  15. options[:attribution] = <<-HTML
  16. &copy; 2012&ndash;2015 The Dojo Foundation<br>
  17. Licensed under the MIT License.
  18. HTML
  19. end
  20. end