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'