From 102d10da4ded3e8fc3aed2567a31fa8bb2ddf3c9 Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 4 Jun 2017 11:33:07 -0400 Subject: [PATCH] Update webpack documentation (2.6.1, 1.15.0) --- lib/docs/filters/webpack/clean_html.rb | 10 ++++++++++ lib/docs/scrapers/webpack.rb | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/docs/filters/webpack/clean_html.rb b/lib/docs/filters/webpack/clean_html.rb index 2e515ac3..1911949a 100644 --- a/lib/docs/filters/webpack/clean_html.rb +++ b/lib/docs/filters/webpack/clean_html.rb @@ -29,6 +29,16 @@ module Docs node.content = node.content.remove(' (click to show)') end + css('.table-wrap').each do |node| + css('.table-td-title').remove + css('.table-th').each { |n| n.name = 'th' } + css('.table-td').each { |n| n.name = 'td' } + css('.table-tr').each { |n| n.name = 'tr' } + css('.table-body').each { |n| n.name = 'tbody' } + css('.table-header').each { |n| n.name = 'thead' } + node.name = 'table' + end + css('pre > code').each do |node| node.parent['data-language'] = node['class'][/lang-(\w+)/, 1].sub('jsx', 'js') if node['class'] node.parent.content = node.parent.content diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index 6a2449f2..8b8d1e78 100644 --- a/lib/docs/scrapers/webpack.rb +++ b/lib/docs/scrapers/webpack.rb @@ -4,7 +4,7 @@ module Docs self.type = 'webpack' version '2' do - self.release = '2.5.1' + self.release = '2.6.1' self.base_url = 'https://webpack.js.org/' self.root_path = 'guides/get-started/' self.initial_paths = %w(