mirror of
https://github.com/freeCodeCamp/devdocs
synced 2024-11-16 19:48:10 +01:00
25 lines
765 B
Ruby
25 lines
765 B
Ruby
module Docs
|
|
class Codeceptjs < UrlScraper
|
|
self.name = 'CodeceptJS'
|
|
self.type = 'codeceptjs'
|
|
self.root_path = 'index.html'
|
|
self.release = '0.5.0'
|
|
self.base_url = 'http://codecept.io/'
|
|
self.links = {
|
|
home: 'http://codecept.io/',
|
|
code: 'https://github.com/codeception/codeceptjs'
|
|
}
|
|
|
|
html_filters.push 'codeceptjs/clean_html', 'codeceptjs/entries', 'title'
|
|
|
|
options[:root_title] = 'CodeceptJS'
|
|
options[:title] = false
|
|
options[:skip_links] = ->(filter) { !filter.root_page? }
|
|
options[:skip_patterns] = [/changelog/, /quickstart\z/]
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2015 DavertMik <davert@codegyre.com> (http://codegyre.com)<br>
|
|
Licensed under the MIT License.
|
|
HTML
|
|
end
|
|
end
|