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.
|
|
|
module Docs
|
|
|
|
class Express < UrlScraper
|
|
|
|
self.name = 'Express'
|
|
|
|
self.type = 'express'
|
|
|
|
self.release = '4.13.0'
|
|
|
|
self.base_url = 'http://expressjs.com/'
|
|
|
|
self.root_path = '4x/api.html'
|
|
|
|
self.links = {
|
|
|
|
home: 'http://expressjs.com/',
|
|
|
|
code: 'https://github.com/strongloop/express/'
|
|
|
|
}
|
|
|
|
|
|
|
|
html_filters.push 'express/clean_html', 'express/entries', 'title'
|
|
|
|
|
|
|
|
options[:title] = false
|
|
|
|
options[:root_title] = 'Express'
|
|
|
|
options[:container] = ->(filter) { filter.root_page? ? '#api-doc' : '.content' }
|
|
|
|
|
|
|
|
options[:only_patterns] = [
|
|
|
|
/\Astarter/,
|
|
|
|
/\Aguide/,
|
|
|
|
/\Aadvanced/
|
|
|
|
]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2009–2015 TJ Holowaychuk<br>
|
|
|
|
Licensed under the MIT License.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|