[devdocsgjs/main: 63/64] Update webpack documentation (5.72.0)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 63/64] Update webpack documentation (5.72.0)
- Date: Fri, 6 May 2022 23:47:34 +0000 (UTC)
commit 0f81af8616653665257a5979cffdb81cdd780709
Author: Simon Legner <Simon Legner gmail com>
Date: Wed May 4 22:25:31 2022 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]