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.16.3'
|
|
|
|
self.base_url = 'http://expressjs.com/en/'
|
|
|
|
self.root_path = '4x/api.html'
|
|
|
|
self.initial_paths = %w(
|
|
|
|
starter/installing.html
|
|
|
|
guide/routing.html
|
|
|
|
advanced/developing-template-engines.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[:only_patterns] = [
|
|
|
|
/\Astarter/,
|
|
|
|
/\Aguide/,
|
|
|
|
/\Aadvanced/ ]
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2017 StrongLoop, IBM, and other expressjs.com contributors.<br>
|
|
|
|
Licensed under the Creative Commons Attribution-ShareAlike License v3.0.
|
|
|
|
HTML
|
|
|
|
end
|
|
|
|
end
|