Unified · Split
| @@ -26,10 +26,12 @@ module Docs · 25 unmodified lines | |||
| 26 | next if node.previous.try(:content).present? | 26 | next if node.previous.try(:content).present? |
| 27 | entries << [node.content, node.parent['id']] | 27 | entries << [node.content, node.parent['id']] |
| 28 | end | 28 | end |
| 29 | elsif slug.start_with?('api') | 29 | elsif slug.start_with?('api') && slug != 'api/plugins/parser' |
| 30 | css('.header[id] code').each_with_object [] do |node, entries| | 30 | css('.header[id] code').each_with_object [] do |node, entries| |
| 31 | next if node.previous.try(:content).present? | 31 | next if node.previous.try(:content).present? |
| 32 | entries << ["#{self.name.split(':').first}: #{node.content.sub(/\(.*\)/, '()')}", node.parent['id']] | 32 | name = node.content.sub(/\(.*\)/, '()') |
| 33 | name.prepend "#{self.name.split(':').first}: " | ||
| 34 | entries << [name, node.parent['id']] | ||
| 33 | end | 35 | end |
| 34 | else | 36 | else |
| 35 | [] | 37 | [] |
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | self.type = 'webpack' | 4 | self.type = 'webpack' |
| 5 | 5 | ||
| 6 | version do | 6 | version do |
| 7 | self.release = '3.5.5' | 7 | self.release = '3.6.0' |
| 8 | self.base_url = 'https://webpack.js.org/' | 8 | self.base_url = 'https://webpack.js.org/' |
| 9 | self.root_path = 'guides/' | 9 | self.root_path = 'guides/' |
| 10 | self.initial_paths = %w( | 10 | self.initial_paths = %w( |