Unified · Split
| @@ -22,16 +22,16 @@ module Docs · 21 unmodified lines | ||
| 22 | 22 | |
| 23 | 23 | def additional_entries |
| 24 | 24 | if slug.start_with?('configuration') |
| 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']] | |
| 25 | + css('h2[id]').each_with_object [] do |node, entries| | |
| 26 | + next if version.to_f < 5 && node.previous.try(:content).present? | |
| 27 | + entries << [node.content, node['id']] | |
| 28 | 28 | end |
| 29 | 29 | elsif slug.start_with?('api') && slug != 'api/parser' |
| 30 | 30 | css('.header[id] code').each_with_object [] do |node, entries| |
| 31 | − next if node.previous.try(:content).present? || node.next.try(:content).present? | |
| 31 | + next if version.to_f < 5 && (node.previous.try(:content).present? || node.next.try(:content).present?) | |
| 32 | 32 | name = node.content.sub(/\(.*\)/, '()') |
| 33 | 33 | name.prepend "#{self.name.split(':').first}: " |
| 34 | − entries << [name, node.parent['id']] | |
| 34 | + entries << [name, node['id']] | |
| 35 | 35 | end |
| 36 | 36 | else |
| 37 | 37 | [] |
| @@ -36,7 +36,7 @@ module Docs · 35 unmodified lines | ||
| 36 | 36 | HTML |
| 37 | 37 | |
| 38 | 38 | version '5' do |
| 39 | − self.release = '5.41.1' | |
| 39 | + self.release = '5.59.1' | |
| 40 | 40 | self.base_url = 'https://webpack.js.org/' |
| 41 | 41 | end |
| 42 | 42 | |