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
42 node.parent.content = node.parent.content42 node.parent.content = node.parent.content
43 end43 end
44 44
45 css('.alert-warning').remove
46
45 doc47 doc
46 end48 end
47 end49 end
lib/docs/scrapers/codeception.rb+2−3
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
2 class Codeception < UrlScraper2 class Codeception < UrlScraper
3 self.name = 'Codeception'3 self.name = 'Codeception'
4 self.type = 'codeception'4 self.type = 'codeception'
5 self.release = '4.1.12'5 self.release = '4.1.22'
6 self.base_url = 'https://codeception.com/docs/'6 self.base_url = 'https://codeception.com/docs/'
7 self.root_path = 'index.html'7 self.root_path = 'index.html'
8 self.links = {8 self.links = {
@@ -20,8 +20,7 @@ module Docs · 11 unmodified lines
20 HTML20 HTML
21 21
22 def get_latest_version(opts)22 def get_latest_version(opts)
23 doc = fetch_doc('https://codeception.com/changelog', opts)23 get_github_tags("Codeception", "Codeception", opts)[1]["name"]
24 doc.at_css('#page > h4').content
25 end24 end
26 end25 end
27end26end