Bladeren bron

Update webpack documentation (3.6.0)

Thibaut Courouble 8 jaren geleden
bovenliggende
commit
eda419e6f1
2 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 4 2
      lib/docs/filters/webpack/entries.rb
  2. 1 1
      lib/docs/scrapers/webpack.rb

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

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

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

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