less.rb 588 B

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