Update Koa documentation

pull/1384/head
Phil Scherer 4 years ago
parent 86eb725c22
commit 771d429ea3

@ -423,7 +423,7 @@ credits = [
'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE' 'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE'
], [ ], [
'Koa', 'Koa',
'2018 Koa contributors', '2020 Koa contributors',
'MIT', 'MIT',
'https://raw.githubusercontent.com/koajs/koa/master/LICENSE' 'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
], [ ], [

@ -3,7 +3,7 @@
module Docs module Docs
class Koa < Github class Koa < Github
self.base_url = 'https://github.com/koajs/koa/blob/master/docs/' self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'
self.release = '2.6.1' self.release = '2.13.0'
self.root_path = 'api/index.md' self.root_path = 'api/index.md'
self.initial_paths = %w[ self.initial_paths = %w[
@ -30,8 +30,13 @@ module Docs
options[:trailing_slash] = false options[:trailing_slash] = false
options[:container] = '.markdown-body' options[:container] = '.markdown-body'
options[:fix_urls] = ->(url) do
url.sub! 'https://koajs.com/#error-handling', Koa.base_url + '/error-handling.md'
url
end
options[:attribution] = <<-HTML options[:attribution] = <<-HTML
&copy; 2018 Koa contributors<br> &copy; 2020 Koa contributors<br>
Licensed under the MIT License. Licensed under the MIT License.
HTML HTML

Loading…
Cancel
Save