mirror of https://github.com/freeCodeCamp/devdocs
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.
39 lines
845 B
39 lines
845 B
7 years ago
|
# frozen_string_literal: true
|
||
|
|
||
|
module Docs
|
||
|
class Koa < Github
|
||
|
self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'
|
||
|
self.release = '2.4.1'
|
||
|
|
||
|
self.root_path = 'api/index.md'
|
||
|
self.initial_paths = %w[
|
||
|
error-handling
|
||
|
faq
|
||
|
guide
|
||
|
koa-vs-express
|
||
|
migration
|
||
|
troubleshooting
|
||
|
api/index
|
||
|
api/context
|
||
|
api/request
|
||
|
api/response
|
||
|
].map { |name| name + '.md' }
|
||
|
|
||
|
self.links = {
|
||
|
home: 'https://koajs.com/',
|
||
|
code: 'https://github.com/koajs/koa'
|
||
|
}
|
||
|
|
||
|
html_filters.push 'koa/clean_html', 'koa/entries'
|
||
|
|
||
|
options[:skip] = %w[middleware.gif]
|
||
|
options[:trailing_slash] = false
|
||
|
options[:container] = '.markdown-body'
|
||
|
|
||
|
options[:attribution] = <<-HTML
|
||
|
© 2017 Koa contributors<br>
|
||
|
Licensed under the MIT License.
|
||
|
HTML
|
||
|
end
|
||
|
end
|