History

Update webpack documentation (3.6.0)

Thibaut Courouble committed 9 years ago

Commit eda419e1 parent f1163ad2 files · +5 −3Browse files

Unified · Split

2 files
  1. lib/docs/filters/webpack/entries.rb +4 −2
  2. lib/docs/scrapers/webpack.rb +1 −1
lib/docs/filters/webpack/entries.rb+4−2
@@ -26,10 +26,12 @@ module Docs · 25 unmodified lines
2626 next if node.previous.try(:content).present?
2727 entries << [node.content, node.parent['id']]
2828 end
29− elsif slug.start_with?('api')
29+ elsif slug.start_with?('api') && slug != 'api/plugins/parser'
3030 css('.header[id] code').each_with_object [] do |node, entries|
3131 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']]
3335 end
3436 else
3537 []
lib/docs/scrapers/webpack.rb+1−1
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
44 self.type = 'webpack'
55
66 version do
7− self.release = '3.5.5'
7+ self.release = '3.6.0'
88 self.base_url = 'https://webpack.js.org/'
99 self.root_path = 'guides/'
1010 self.initial_paths = %w(