From 2e4a38fc03dbd959107c9d6814e004aa9f032cd0 Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sun, 9 Mar 2014 09:24:17 -0400 Subject: [PATCH] Update Less documentation (1.7.0) --- lib/docs/filters/less/entries.rb | 3 ++- lib/docs/scrapers/less.rb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/less/entries.rb b/lib/docs/filters/less/entries.rb index 7de7cbf4..47bcf87b 100644 --- a/lib/docs/filters/less/entries.rb +++ b/lib/docs/filters/less/entries.rb @@ -18,6 +18,7 @@ module Docs css('h1').each do |node| name = node.content + name = 'Rulesets' if name == 'Passing Rulesets to Mixins' entries << [name, node['id']] unless name == 'Overview' end @@ -50,7 +51,7 @@ module Docs css('.docs-section').each do |section| if title = section.at_css('h1') type = title.content - type.sub! %r{(\w+) Functions}, 'Functions: \1' + type.sub! %r{(.+) Functions}, 'Functions: \1' end section.css('h3').each do |node| diff --git a/lib/docs/scrapers/less.rb b/lib/docs/scrapers/less.rb index d06404f6..d34614da 100644 --- a/lib/docs/scrapers/less.rb +++ b/lib/docs/scrapers/less.rb @@ -1,7 +1,7 @@ module Docs class Less < UrlScraper self.type = 'less' - self.version = '1.6.3' + self.version = '1.7.0' self.base_url = 'http://lesscss.org' self.root_path = '/features' self.initial_paths = %w(/functions)