Преглед на файлове

Update webpack documentation (3.8.1)

Thibaut Courouble преди 8 години
родител
ревизия
a2c0a50894
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 2 2
      lib/docs/filters/webpack/entries.rb
  2. 1 1
      lib/docs/scrapers/webpack.rb

+ 2 - 2
lib/docs/filters/webpack/entries.rb

@@ -26,9 +26,9 @@ module Docs
             next if node.previous.try(:content).present?
             entries << [node.content, node.parent['id']]
           end
-        elsif slug.start_with?('api') && slug != 'api/plugins/parser'
+        elsif slug.start_with?('api') && slug != 'api/parser'
           css('.header[id] code').each_with_object [] do |node, entries|
-            next if node.previous.try(:content).present?
+            next if node.previous.try(:content).present? || node.next.try(:content).present?
             name = node.content.sub(/\(.*\)/, '()')
             name.prepend "#{self.name.split(':').first}: "
             entries << [name, node.parent['id']]

+ 1 - 1
lib/docs/scrapers/webpack.rb

@@ -4,7 +4,7 @@ module Docs
     self.type = 'webpack'
 
     version do
-      self.release = '3.6.0'
+      self.release = '3.8.1'
       self.base_url = 'https://webpack.js.org/'
       self.root_path = 'guides/'
       self.initial_paths = %w(