Browse Source

Update Codeception documentation (2.2.7)

Thibaut Courouble 9 năm trước cách đây
mục cha
commit
50f30f8531

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

@@ -26,13 +26,13 @@ module Docs
       def additional_entries
         if type =~ /Module/
           prefix = "#{name}::"
-          pattern = '#actions ~ h4'
+          pattern = at_css('#actions') ? '#actions ~ h4' : '#page h4'
         elsif type =~ /Functions/
           prefix = ''
           pattern = '#page h4'
         elsif name =~ /Util/
           prefix = "#{name.remove('Codeception\\Util\\')}::"
-          pattern = 'h3'
+          pattern = '#page h4'
         elsif type =~ /(Commands)|(Configuration)/
           prefix = ''
           pattern = 'h2'

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

@@ -2,7 +2,7 @@ module Docs
   class Codeception < UrlScraper
     self.name = 'Codeception'
     self.type = 'codeception'
-    self.release = '2.2.6'
+    self.release = '2.2.7'
     self.base_url = 'http://codeception.com/docs/'
     self.root_path = 'index.html'
     self.links = {