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.
devdocs/lib/docs/scrapers/phalcon.rb

24 lines
667 B

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
&copy; 2012&ndash;2015 the Phalcon Team<br>
Licensed under the Creative Commons Attribution License 3.0.
HTML
end
end