less.rb 694 B

12345678910111213141516171819202122232425
  1. module Docs
  2. class Less < UrlScraper
  3. self.type = 'less'
  4. self.version = '2.5.0'
  5. self.base_url = 'http://lesscss.org'
  6. self.root_path = '/features'
  7. self.initial_paths = %w(/functions)
  8. self.links = {
  9. home: 'http://lesscss.org/',
  10. code: 'https://github.com/less/less.js'
  11. }
  12. html_filters.push 'less/clean_html', 'less/entries', 'title'
  13. options[:title] = 'Less'
  14. options[:container] = 'div[role=main]'
  15. options[:follow_links] = false
  16. options[:trailing_slash] = false
  17. options[:attribution] = <<-HTML
  18. &copy; 2009&ndash;2015 The Core Less Team<br>
  19. Licensed under the Creative Commons Attribution License 3.0.
  20. HTML
  21. end
  22. end