lodash.rb 729 B

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