diff --git a/lib/docs/filters/mongoose/clean_html.rb b/lib/docs/filters/mongoose/clean_html.rb index 04ef6a12..b0074247 100644 --- a/lib/docs/filters/mongoose/clean_html.rb +++ b/lib/docs/filters/mongoose/clean_html.rb @@ -13,6 +13,11 @@ module Docs node.previous_element.replace("

#{node.previous_element.to_html}

") end else + css('h2:empty + p').each do |node| # /customschematypes.html + node.previous_element.content = node.content + node.remove + end + at_css('h2').name = 'h1' css('h3').each do |node| diff --git a/lib/docs/scrapers/mongoose.rb b/lib/docs/scrapers/mongoose.rb index 63281862..beb43fd8 100644 --- a/lib/docs/scrapers/mongoose.rb +++ b/lib/docs/scrapers/mongoose.rb @@ -2,7 +2,7 @@ module Docs class Mongoose < UrlScraper self.name = 'Mongoose' self.type = 'mongoose' - self.release = '4.3.5' + self.release = '4.4.2' self.base_url = 'http://mongoosejs.com/docs/' self.root_path = 'index.html' self.initial_paths = %w(guide.html api.html)