Update webpack documentation (2.3.3)

pull/620/head
Thibaut Courouble 8 years ago
parent 2572ddcf49
commit 8a0aaec23f

@ -8,7 +8,6 @@ module Docs
end end
TYPE_BY_DIRECTORY = { TYPE_BY_DIRECTORY = {
'get-started' => 'Getting Started',
'concepts' => 'Concepts', 'concepts' => 'Concepts',
'guides' => 'Guides', 'guides' => 'Guides',
'api' => 'API', 'api' => 'API',
@ -23,8 +22,9 @@ module Docs
def additional_entries def additional_entries
if slug.start_with?('configuration') if slug.start_with?('configuration')
css('h2[id] code').map do |node| css('h2[id] code').each_with_object [] do |node, entries|
[node.content, node.parent['id']] next if node.previous.try(:content).present?
entries << [node.content, node.parent['id']]
end end
elsif slug.start_with?('api') elsif slug.start_with?('api')
css('.header[id] code').each_with_object [] do |node, entries| css('.header[id] code').each_with_object [] do |node, entries|

@ -4,9 +4,9 @@ module Docs
self.type = 'webpack' self.type = 'webpack'
version '2' do version '2' do
self.release = '2.2.0' self.release = '2.3.3'
self.base_url = 'https://webpack.js.org/' self.base_url = 'https://webpack.js.org/'
self.root_path = 'get-started/' self.root_path = 'guides/get-started/'
self.initial_paths = %w( self.initial_paths = %w(
concepts/ concepts/
guides/ guides/
@ -25,7 +25,6 @@ module Docs
options[:container] = '.page' options[:container] = '.page'
options[:trailing_slash] = true options[:trailing_slash] = true
options[:only_patterns] = [ options[:only_patterns] = [
/\Aget-started\//,
/\Aconcepts\//, /\Aconcepts\//,
/\Aguides\//, /\Aguides\//,
/\Aapi\//, /\Aapi\//,

Loading…
Cancel
Save