mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.4 KiB
58 lines
1.4 KiB
module Docs
|
|
class Cakephp < FileScraper
|
|
self.name = 'CakePHP'
|
|
self.type = 'cakephp'
|
|
self.dir = '/Users/Thibaut/DevDocs/Docs/CakePHP'
|
|
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'
|
|
|
|
options[:container] = '#right'
|
|
|
|
options[:skip_patterns] = [/\Asource-/]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 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.
|
|
HTML
|
|
|
|
version '3.3' do
|
|
self.release = '3.3.1'
|
|
self.base_url = 'http://api.cakephp.org/3.3/'
|
|
end
|
|
|
|
version '3.2' do
|
|
self.release = '3.2.8'
|
|
self.base_url = 'http://api.cakephp.org/3.2/'
|
|
end
|
|
|
|
version '3.1' do
|
|
self.release = '3.1.13'
|
|
self.base_url = 'http://api.cakephp.org/3.1/'
|
|
end
|
|
|
|
version '2.8' do
|
|
self.release = '2.8.3'
|
|
self.base_url = 'http://api.cakephp.org/2.8/'
|
|
end
|
|
|
|
version '2.7' do
|
|
self.release = '2.7.11'
|
|
self.base_url = 'http://api.cakephp.org/2.7/'
|
|
end
|
|
|
|
private
|
|
|
|
def parse(string)
|
|
string.gsub! '<h5 class="method-name">', '<h3 class="method-name">'
|
|
super
|
|
end
|
|
end
|
|
end
|