|
|
|
@ -2,17 +2,24 @@ module Docs
|
|
|
|
|
class Express < UrlScraper
|
|
|
|
|
self.name = 'Express'
|
|
|
|
|
self.type = 'express'
|
|
|
|
|
self.version = '4.10.0'
|
|
|
|
|
self.base_url = 'http://expressjs.com/4x/api.html'
|
|
|
|
|
self.version = '4.11.1'
|
|
|
|
|
self.base_url = 'http://expressjs.com/'
|
|
|
|
|
self.root_path = '4x/api.html'
|
|
|
|
|
|
|
|
|
|
html_filters.push 'express/clean_html', 'express/entries', 'title'
|
|
|
|
|
|
|
|
|
|
options[:title] = 'Express'
|
|
|
|
|
options[:container] = '#api-doc'
|
|
|
|
|
options[:skip_links] = true
|
|
|
|
|
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–2014 TJ Holowaychuk<br>
|
|
|
|
|
© 2009–2015 TJ Holowaychuk<br>
|
|
|
|
|
Licensed under the MIT License.
|
|
|
|
|
HTML
|
|
|
|
|
end
|
|
|
|
|