Pārlūkot izejas kodu

Update CodeceptJS documentation (1.4.4)

Thibaut Courouble 7 gadi atpakaļ
vecāks
revīzija
459ecfdfe6

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

@@ -20,8 +20,8 @@ module Docs
       def additional_entries
         return [] unless subpath.start_with?('helpers') && subpath != 'helpers/'
 
-        css('h2').each_with_object [] do |node, entries|
-          next if node['id'] == 'access-from-helpers'
+        css('h2, h3').each_with_object [] do |node, entries|
+          next if node['id'] == 'access-from-helpers' || node.content !~ /\s*[a-z_]/
           entries << ["#{node.content} (#{name})", node['id']]
         end
       end

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

@@ -3,7 +3,7 @@ module Docs
     self.name = 'CodeceptJS'
     self.type = 'simple'
     self.root_path = 'index.html'
-    self.release = '1.3.1'
+    self.release = '1.4.4'
     self.base_url = 'https://codecept.io/'
     self.links = {
       home: 'https://codecept.io/',