Merge pull request #1334 from scherepn/less-update

Update Less documentation
pull/1338/head
Simon Legner 4 years ago committed by GitHub
commit c55924bc4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -438,7 +438,7 @@ credits = [
'https://raw.githubusercontent.com/Leaflet/Leaflet/master/LICENSE'
], [
'Less',
'2009-2016 The Core Less Team',
'2009-2020 The Core Less Team',
'CC BY',
'https://creativecommons.org/licenses/by/3.0/'
], [

@ -7,7 +7,7 @@ module Docs
node.remove
end
css('.source-link', 'a[id$="md"]', 'br').remove
css('.navbar', '.source-link', 'a[id$="md"]', 'br').remove
css('#functions-overview').each do |node|
node.ancestors('.docs-section').remove

@ -1,7 +1,6 @@
module Docs
class Less < UrlScraper
self.type = 'simple'
self.release = '2.7.2'
self.base_url = 'http://lesscss.org'
self.root_path = '/features'
self.initial_paths = %w(/functions)
@ -18,10 +17,18 @@ module Docs
options[:trailing_slash] = false
options[:attribution] = <<-HTML
&copy; 2009&ndash;2016 The Core Less Team<br>
&copy; 2009&ndash;2020 The Core Less Team<br>
Licensed under the Creative Commons Attribution License 3.0.
HTML
version '3' do
self.release = '3.12.0'
end
version '2' do
self.release = '2.7.2'
end
def get_latest_version(opts)
doc = fetch_doc('http://lesscss.org/features/', opts)
label = doc.at_css('.footer-links > li').content

Loading…
Cancel
Save