From c7ce77b66aa7275feabd7e4466097015df1d443b Mon Sep 17 00:00:00 2001 From: Thibaut Date: Sat, 30 Aug 2014 12:19:07 -0400 Subject: [PATCH] Update CoffeeScript documentation (1.8.0) --- lib/docs/filters/coffeescript/clean_html.rb | 5 ++++- lib/docs/scrapers/coffeescript.rb | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/coffeescript/clean_html.rb b/lib/docs/filters/coffeescript/clean_html.rb index dcbc030b..da6f7ae3 100644 --- a/lib/docs/filters/coffeescript/clean_html.rb +++ b/lib/docs/filters/coffeescript/clean_html.rb @@ -15,7 +15,10 @@ module Docs end # Remove Books, Screencasts, etc. - css('#scripts ~ *', '#scripts').remove + while doc.children.last['id'] != 'scripts' + doc.children.last.remove + end + doc.children.last.remove # Make proper headings css('.header').each do |node| diff --git a/lib/docs/scrapers/coffeescript.rb b/lib/docs/scrapers/coffeescript.rb index 51e9dcd1..a1f016d2 100644 --- a/lib/docs/scrapers/coffeescript.rb +++ b/lib/docs/scrapers/coffeescript.rb @@ -2,7 +2,7 @@ module Docs class Coffeescript < UrlScraper self.name = 'CoffeeScript' self.type = 'coffeescript' - self.version = '1.7.1' + self.version = '1.8.0' self.base_url = 'http://coffeescript.org' html_filters.push 'coffeescript/clean_html', 'coffeescript/entries', 'title'