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

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

Loading…
Cancel
Save