Browse Source

Update Less documentation

Phil Scherer 5 years ago
parent
commit
175ffdb1dd

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -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/'
   ], [

+ 1 - 1
lib/docs/filters/less/clean_html.rb

@@ -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

+ 2 - 2
lib/docs/scrapers/less.rb

@@ -1,7 +1,7 @@
 module Docs
   class Less < UrlScraper
     self.type = 'simple'
-    self.release = '2.7.2'
+    self.release = '3.12.0'
     self.base_url = 'http://lesscss.org'
     self.root_path = '/features'
     self.initial_paths = %w(/functions)
@@ -18,7 +18,7 @@ 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