2015-11-26 02:55:53 +01:00
|
|
|
module Docs
|
|
|
|
class Cakephp < FileScraper
|
|
|
|
self.name = 'CakePHP'
|
|
|
|
self.type = 'cakephp'
|
2016-02-14 18:50:38 +01:00
|
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/CakePHP'
|
2015-11-26 02:55:53 +01:00
|
|
|
self.root_path = 'index.html'
|
|
|
|
self.links = {
|
|
|
|
home: 'http://cakephp.org/',
|
|
|
|
code: 'https://github.com/cakephp/cakephp'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'cakephp/clean_html', 'cakephp/entries'
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
options[:container] = '#right'
|
2015-11-26 02:55:53 +01:00
|
|
|
|
|
|
|
options[:skip_patterns] = [/\Asource-/]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
2016-02-14 18:50:38 +01:00
|
|
|
© 2005–2016 The Cake Software Foundation, Inc.<br>
|
|
|
|
Licensed under the MIT License.<br>
|
|
|
|
CakePHP is a registered trademark of Cake Software Foundation, Inc.<br>
|
|
|
|
We are not endorsed by or affiliated with CakePHP.
|
2015-11-26 02:55:53 +01:00
|
|
|
HTML
|
2016-02-14 18:50:38 +01:00
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '3.3' do
|
|
|
|
self.release = '3.3.1'
|
|
|
|
self.base_url = 'http://api.cakephp.org/3.3/'
|
|
|
|
end
|
|
|
|
|
|
|
|
version '3.2' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '3.2.8'
|
2016-02-14 18:50:38 +01:00
|
|
|
self.base_url = 'http://api.cakephp.org/3.2/'
|
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '3.1' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '3.1.13'
|
2016-02-14 18:50:38 +01:00
|
|
|
self.base_url = 'http://api.cakephp.org/3.1/'
|
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '2.8' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '2.8.3'
|
2016-02-14 18:50:38 +01:00
|
|
|
self.base_url = 'http://api.cakephp.org/2.8/'
|
|
|
|
end
|
|
|
|
|
2016-08-21 23:39:43 +02:00
|
|
|
version '2.7' do
|
2016-05-01 16:06:03 +02:00
|
|
|
self.release = '2.7.11'
|
2016-02-14 18:50:38 +01:00
|
|
|
self.base_url = 'http://api.cakephp.org/2.7/'
|
|
|
|
end
|
2016-08-21 23:39:43 +02:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def parse(string)
|
|
|
|
string.gsub! '<h5 class="method-name">', '<h3 class="method-name">'
|
|
|
|
super
|
|
|
|
end
|
2015-11-26 02:55:53 +01:00
|
|
|
end
|
|
|
|
end
|