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.
24 lines
667 B
24 lines
667 B
10 years ago
|
module Docs
|
||
|
class Phalcon < UrlScraper
|
||
|
self.name = 'Phalcon'
|
||
|
self.slug = 'phalcon'
|
||
|
self.type = 'phalcon'
|
||
|
self.base_url = 'https://docs.phalconphp.com/en/latest/'
|
||
|
self.root_path = 'index.html'
|
||
|
self.links = {
|
||
|
home: 'https://phalconphp.com/',
|
||
|
code: 'https://github.com/phalcon/cphalcon/'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'phalcon/clean_html', 'phalcon/entries', 'title'
|
||
|
|
||
|
options[:root_title] = 'Phalcon'
|
||
|
options[:only_patterns] = [/reference\//, /api\//]
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2012–2015 the Phalcon Team<br>
|
||
|
Licensed under the Creative Commons Attribution License 3.0.
|
||
|
HTML
|
||
|
end
|
||
|
end
|