History

Update webpack documentation (5.59.1)

Simon Legner committed 5 years ago

Commit da98edb1 parent 41e848c2 files · +6 −6Browse files

Unified · Split

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