From 3ecb2a761f4058e537fef50b7d609a8f58839f27 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Mon, 2 Jan 2017 15:51:45 -0500 Subject: [PATCH] Update Ramda documentation (0.23.0) --- lib/docs/filters/ramda/clean_html.rb | 8 ++++---- lib/docs/scrapers/ramda.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/docs/filters/ramda/clean_html.rb b/lib/docs/filters/ramda/clean_html.rb index df88f0fc..fd9158f5 100644 --- a/lib/docs/filters/ramda/clean_html.rb +++ b/lib/docs/filters/ramda/clean_html.rb @@ -49,13 +49,13 @@ module Docs node.parent.content = node.content end - css('.card').each do |node| - node.at_css('h2')['id'] = node['id'] if node['id'] + css('.card', '.panel-body', 'div.params', 'div.description', 'h2 > a').each do |node| node.before(node.children).remove end - css('.panel-body', 'div.params', 'div.description', 'h2 > a').each do |node| - node.before(node.children).remove + css('.section-id[id]').each do |node| + node.next_element['id'] = node['id'] + node.remove end css('h2').each do |node| diff --git a/lib/docs/scrapers/ramda.rb b/lib/docs/scrapers/ramda.rb index 9b02951b..f5284db8 100644 --- a/lib/docs/scrapers/ramda.rb +++ b/lib/docs/scrapers/ramda.rb @@ -1,7 +1,7 @@ module Docs class Ramda < UrlScraper self.type = 'ramda' - self.release = '0.22.1' + self.release = '0.23.0' self.base_url = "http://ramdajs.com/#{release}/docs/" self.links = { home: 'http://ramdajs.com/',