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/codeigniter.rb

36 lines
839 B

module Docs
class Codeigniter < UrlScraper
self.name = 'CodeIgniter'
self.type = 'codeigniter'
self.release = '3.0'
self.base_url = 'http://www.codeigniter.com/user_guide/'
self.root_path = 'index.html'
self.links = {
home: 'http://codeigniter.com/',
code: 'https://github.com/bcit-ci/CodeIgniter'
}
html_filters.push 'codeigniter/clean_html', 'codeigniter/entries'
options[:container] = '.document'
options[:only_patterns] = [
/\Ageneral/,
/\Alibraries/,
/\Adatabase/,
/\Ahelpers/
]
options[:skip] = %w(
general/welcome.html
general/requirements.html
general/credits.html
)
options[:attribution] = <<-HTML
&copy; British Columbia Institute of Technology<br>
Licensed under the MIT License.
HTML
end
end