History

Update CakePHP documentation (4.4.6)

Simon Legner committed 4 years ago

Commit dbd16371 parent 77d7e2e1 file · +28 −2Browse files

Unified · Split

lib/docs/scrapers/cakephp.rb+28−2
@@ -17,6 +17,33 @@ module Docs · 16 unmodified lines
1717 We are not endorsed by or affiliated with CakePHP.
1818 HTML
1919
20+ version '4.4' do
21+ self.release = '4.4.6'
22+ self.base_url = "https://api.cakephp.org/#{self.version}/"
23+
24+ html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
25+
26+ options[:container] = '.page-container'
27+ end
28+
29+ version '4.3' do
30+ self.release = '4.3.10'
31+ self.base_url = "https://api.cakephp.org/#{self.version}/"
32+
33+ html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
34+
35+ options[:container] = '.page-container'
36+ end
37+
38+ version '4.2' do
39+ self.release = '4.2.10'
40+ self.base_url = "https://api.cakephp.org/#{self.version}/"
41+
42+ html_filters.push 'cakephp/clean_html_39_plus', 'cakephp/entries_39_plus'
43+
44+ options[:container] = '.page-container'
45+ end
46+
2047 version '4.1' do
2148 self.release = '4.1.6'
2249 self.base_url = "https://api.cakephp.org/#{self.version}/"
@@ -153,8 +180,7 @@ module Docs · 130 unmodified lines
153180 end
154181
155182 def get_latest_version(opts)
156− doc = fetch_doc('https://cakephp.org', opts)
157− doc.at_css('.title-home h1').content.scan(/\d\.\d*\.*\d*\.*\d*\.*/)[0]
183+ get_latest_github_release('cakephp', 'cakephp', opts)
158184 end
159185
160186 private