소스 검색

Update webpack documentation (5.72.0)

Simon Legner 3 년 전
부모
커밋
0f81af8616
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

@@ -22,9 +22,9 @@ module Docs
 
       def additional_entries
         if slug.start_with?('configuration')
-          css('h2[id]').each_with_object [] do |node, entries|
+          css('h2 > [id]').each_with_object [] do |node, entries|
             next if version.to_f < 5 && node.previous.try(:content).present?
-            entries << [node.content, node['id']]
+            entries << [node.parent.content, node['id']]
           end
         elsif slug.start_with?('api') && slug != 'api/parser'
           css('.header[id] code').each_with_object [] do |node, entries|

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

@@ -36,7 +36,7 @@ module Docs
     HTML
 
     version '5' do
-      self.release = '5.65.0'
+      self.release = '5.72.0'
       self.base_url = 'https://webpack.js.org/'
     end