From 578bba18073bf45269466f475368de8334bd2c7b Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sat, 4 Dec 2021 18:37:43 +0100 Subject: [PATCH] Update webpack documentation (5.64.4) --- lib/docs/filters/webpack/clean_html.rb | 4 ++++ lib/docs/scrapers/webpack.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/webpack/clean_html.rb b/lib/docs/filters/webpack/clean_html.rb index ebc235f5..b57190a9 100644 --- a/lib/docs/filters/webpack/clean_html.rb +++ b/lib/docs/filters/webpack/clean_html.rb @@ -20,6 +20,10 @@ module Docs node.parent.content = node.parent.content end + css('*').each do |node| + node.remove if node['class'] && node['class'][/print:hidden/] + end + # for webpack-contrib /loaders and /plugins shields = at_css('img[src*="shields.io"]') shields.ancestors('p')[0].remove if shields diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index be6771c3..ae58cd47 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.59.1' + self.release = '5.64.4' self.base_url = 'https://webpack.js.org/' end