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
763 B

module Docs
class Codeceptjs < UrlScraper
self.name = 'CodeceptJS'
self.type = 'simple'
self.root_path = 'index.html'
self.release = '1.3.1'
self.base_url = 'https://codecept.io/'
self.links = {
home: 'https://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
&copy; 2015 DavertMik &lt;davert@codegyre.com&gt; (http://codegyre.com)<br>
Licensed under the MIT License.
HTML
end
end