[devdocsgjs/main: 1856/1867] Update Codeception documentation (4.1.22)




commit 7c911073c2995272ce3d46564a4a28539bf045ad
Author: Enoc <brianhernandez222 hotmail com>
Date:   Tue Nov 2 22:50:42 2021 -0600

    Update Codeception documentation (4.1.22)

 lib/docs/filters/codeception/clean_html.rb | 2 ++
 lib/docs/scrapers/codeception.rb           | 5 ++---
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/lib/docs/filters/codeception/clean_html.rb b/lib/docs/filters/codeception/clean_html.rb
index 6da9b1c2..02cd1bf1 100644
--- a/lib/docs/filters/codeception/clean_html.rb
+++ b/lib/docs/filters/codeception/clean_html.rb
@@ -42,6 +42,8 @@ module Docs
           node.parent.content = node.parent.content
         end
 
+        css('.alert-warning').remove
+
         doc
       end
     end
diff --git a/lib/docs/scrapers/codeception.rb b/lib/docs/scrapers/codeception.rb
index 920080b0..64ebc263 100644
--- a/lib/docs/scrapers/codeception.rb
+++ b/lib/docs/scrapers/codeception.rb
@@ -2,7 +2,7 @@ module Docs
   class Codeception < UrlScraper
     self.name = 'Codeception'
     self.type = 'codeception'
-    self.release = '4.1.12'
+    self.release = '4.1.22'
     self.base_url = 'https://codeception.com/docs/'
     self.root_path = 'index.html'
     self.links = {
@@ -20,8 +20,7 @@ module Docs
     HTML
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://codeception.com/changelog', opts)
-      doc.at_css('#page > h4').content
+      get_github_tags("Codeception", "Codeception", opts)[1]["name"]
     end
   end
 end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]