From 0f81af8616653665257a5979cffdb81cdd780709 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Wed, 4 May 2022 22:25:31 +0200 Subject: [PATCH] Update webpack documentation (5.72.0) --- lib/docs/filters/webpack/entries.rb | 4 ++-- lib/docs/scrapers/webpack.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/docs/filters/webpack/entries.rb b/lib/docs/filters/webpack/entries.rb index 27317873..a293286f 100644 --- a/lib/docs/filters/webpack/entries.rb +++ b/lib/docs/filters/webpack/entries.rb @@ -22,9 +22,9 @@ module Docs def additional_entries if slug.start_with?('configuration') - css('h2[id]').each_with_object [] do |node, entries| + css('h2 > [id]').each_with_object [] do |node, entries| next if version.to_f < 5 && node.previous.try(:content).present? - entries << [node.content, node['id']] + entries << [node.parent.content, node['id']] end elsif slug.start_with?('api') && slug != 'api/parser' css('.header[id] code').each_with_object [] do |node, entries| diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index d0bbd63b..3874970f 100644 --- a/lib/docs/scrapers/webpack.rb +++ b/lib/docs/scrapers/webpack.rb @@ -36,7 +36,7 @@ module Docs HTML version '5' do - self.release = '5.65.0' + self.release = '5.72.0' self.base_url = 'https://webpack.js.org/' end