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

26 lines
715 B

module Docs
class Phalcon < UrlScraper
self.type = 'phalcon'
self.version = '2.0.6'
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'
options[:root_title] = 'Phalcon'
options[:only_patterns] = [/reference\//, /api\//]
options[:skip] = %w(
api/index.html
reference/license.html)
options[:attribution] = <<-HTML
&copy; 2011&ndash;2015 Phalcon Framework Team<br>
Licensed under the Creative Commons Attribution License 3.0.
HTML
end
end