From da343eca8088eb992edffdc40408876592eb8be2 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 26 Jul 2023 20:38:23 +0200 Subject: [PATCH] Update Mongoose documentation (7.4.1) Fixes #2012. --- lib/docs/filters/mongoose/clean_html.rb | 2 +- lib/docs/scrapers/mongoose.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/docs/filters/mongoose/clean_html.rb b/lib/docs/filters/mongoose/clean_html.rb index 7364649b..8b4b98d9 100644 --- a/lib/docs/filters/mongoose/clean_html.rb +++ b/lib/docs/filters/mongoose/clean_html.rb @@ -17,7 +17,7 @@ module Docs node['data-language'] = 'javascript' end - css('.native-inline', '.api-nav', '.toc', '.api-content ul:first-child').remove + css('.native-inline', '.api-nav', '.toc', '.api-content ul:first-child', '.edit-docs-link').remove if !at_css('h1') if css('h2').count > 1 diff --git a/lib/docs/scrapers/mongoose.rb b/lib/docs/scrapers/mongoose.rb index d8a11156..bcd96733 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 = 'simple' - self.release = '5.8.5' + self.release = '7.4.1' self.base_url = 'https://mongoosejs.com/docs/' self.root_path = 'index.html' self.initial_paths = %w(guide.html)