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
17 We are not endorsed by or affiliated with CakePHP.17 We are not endorsed by or affiliated with CakePHP.
18 HTML18 HTML
19 19
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
20 version '4.1' do47 version '4.1' do
21 self.release = '4.1.6'48 self.release = '4.1.6'
22 self.base_url = "https://api.cakephp.org/#{self.version}/"49 self.base_url = "https://api.cakephp.org/#{self.version}/"
@@ -153,8 +180,7 @@ module Docs · 130 unmodified lines
153 end180 end
154 181
155 def get_latest_version(opts)182 def get_latest_version(opts)
156 doc = fetch_doc('https://cakephp.org', opts)183 get_latest_github_release('cakephp', 'cakephp', opts)
157 doc.at_css('.title-home h1').content.scan(/\d\.\d*\.*\d*\.*\d*\.*/)[0]
158 end184 end
159 185
160 private186 private