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

26 lines
748 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

module Docs
class Codeceptjs < UrlScraper
self.name = 'CodeceptJS'
self.type = 'codeceptjs'
self.root_path = 'index.html'
self.release = '0.4'
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.initial_page? }
options[:skip_patterns] = [/changelog/, /quickstart$/]
options[:attribution] = <<-HTML
&copy; 20152016 Michael Bodnarchuk and Contributors<br>
Licensed under the MIT License.
HTML
end
end