diff --git a/lib/docs/filters/webpack/entries.rb b/lib/docs/filters/webpack/entries.rb index c86beadc..2e019685 100644 --- a/lib/docs/filters/webpack/entries.rb +++ b/lib/docs/filters/webpack/entries.rb @@ -26,10 +26,12 @@ module Docs next if node.previous.try(:content).present? entries << [node.content, node.parent['id']] end - elsif slug.start_with?('api') + elsif slug.start_with?('api') && slug != 'api/plugins/parser' css('.header[id] code').each_with_object [] do |node, entries| next if node.previous.try(:content).present? - entries << ["#{self.name.split(':').first}: #{node.content.sub(/\(.*\)/, '()')}", node.parent['id']] + name = node.content.sub(/\(.*\)/, '()') + name.prepend "#{self.name.split(':').first}: " + entries << [name, node.parent['id']] end else [] diff --git a/lib/docs/scrapers/webpack.rb b/lib/docs/scrapers/webpack.rb index f8a4dde3..52ed107d 100644 --- a/lib/docs/scrapers/webpack.rb +++ b/lib/docs/scrapers/webpack.rb @@ -4,7 +4,7 @@ module Docs self.type = 'webpack' version do - self.release = '3.5.5' + self.release = '3.6.0' self.base_url = 'https://webpack.js.org/' self.root_path = 'guides/' self.initial_paths = %w(