History

Update Codeception documentation (4.1.22)

Enoc committed 5 years ago

Commit 7c911071 parent 380b0892 files · +4 −3Browse files

Unified · Split

2 files
  1. lib/docs/filters/codeception/clean_html.rb +2 −0
  2. lib/docs/scrapers/codeception.rb +2 −3
lib/docs/filters/codeception/clean_html.rb+2−0
@@ -42,6 +42,8 @@ module Docs · 41 unmodified lines
4242 node.parent.content = node.parent.content
4343 end
4444
45+ css('.alert-warning').remove
46+
4547 doc
4648 end
4749 end
lib/docs/scrapers/codeception.rb+2−3
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Codeception < UrlScraper
33 self.name = 'Codeception'
44 self.type = 'codeception'
5− self.release = '4.1.12'
5+ self.release = '4.1.22'
66 self.base_url = 'https://codeception.com/docs/'
77 self.root_path = 'index.html'
88 self.links = {
@@ -20,8 +20,7 @@ module Docs · 11 unmodified lines
2020 HTML
2121
2222 def get_latest_version(opts)
23− doc = fetch_doc('https://codeception.com/changelog', opts)
24− doc.at_css('#page > h4').content
23+ get_github_tags("Codeception", "Codeception", opts)[1]["name"]
2524 end
2625 end
2726 end