Unified · Split
| @@ -8,7 +8,6 @@ module Docs · 7 unmodified lines | ||
| 8 | 8 | end |
| 9 | 9 | |
| 10 | 10 | TYPE_BY_DIRECTORY = { |
| 11 | − 'get-started' => 'Getting Started', | |
| 12 | 11 | 'concepts' => 'Concepts', |
| 13 | 12 | 'guides' => 'Guides', |
| 14 | 13 | 'api' => 'API', |
| @@ -23,8 +22,9 @@ module Docs · 8 unmodified lines | ||
| 23 | 22 | |
| 24 | 23 | def additional_entries |
| 25 | 24 | if slug.start_with?('configuration') |
| 26 | − css('h2[id] code').map do |node| | |
| 27 | − [node.content, node.parent['id']] | |
| 25 | + css('h2[id] code').each_with_object [] do |node, entries| | |
| 26 | + next if node.previous.try(:content).present? | |
| 27 | + entries << [node.content, node.parent['id']] | |
| 28 | 28 | end |
| 29 | 29 | elsif slug.start_with?('api') |
| 30 | 30 | css('.header[id] code').each_with_object [] do |node, entries| |
| @@ -4,9 +4,9 @@ module Docs · 3 unmodified lines | ||
| 4 | 4 | self.type = 'webpack' |
| 5 | 5 | |
| 6 | 6 | version '2' do |
| 7 | − self.release = '2.2.0' | |
| 7 | + self.release = '2.3.3' | |
| 8 | 8 | self.base_url = 'https://webpack.js.org/' |
| 9 | − self.root_path = 'get-started/' | |
| 9 | + self.root_path = 'guides/get-started/' | |
| 10 | 10 | self.initial_paths = %w( |
| 11 | 11 | concepts/ |
| 12 | 12 | guides/ |
| @@ -25,7 +25,6 @@ module Docs · 12 unmodified lines | ||
| 25 | 25 | options[:container] = '.page' |
| 26 | 26 | options[:trailing_slash] = true |
| 27 | 27 | options[:only_patterns] = [ |
| 28 | − /\Aget-started\//, | |
| 29 | 28 | /\Aconcepts\//, |
| 30 | 29 | /\Aguides\//, |
| 31 | 30 | /\Aapi\//, |