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/less.rb

22 lines
588 B

module Docs
class Less < UrlScraper
self.type = 'less'
self.version = '1.6.3'
self.base_url = 'http://lesscss.org'
self.root_path = '/features'
self.initial_paths = %w(/functions)
html_filters.push 'less/entries', 'less/clean_html', 'title'
options[:title] = 'Less'
options[:container] = 'div[role=main]'
options[:follow_links] = false
options[:trailing_slash] = false
options[:attribution] = <<-HTML
&copy; 2009&ndash;2014 The Core Less Team<br>
Licensed under the Creative Commons Attribution License 3.0.
HTML
end
end