Merge pull request #1384 from scherepn/koa-update

Update Koa documentation
This commit is contained in:
Simon Legner 2020-11-25 09:23:30 +01:00 committed by GitHub
commit 81abc5af62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

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

View file

@ -3,7 +3,7 @@
module Docs
class Koa < Github
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.initial_paths = %w[
@ -30,8 +30,13 @@ module Docs
options[:trailing_slash] = false
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
&copy; 2018 Koa contributors<br>
&copy; 2020 Koa contributors<br>
Licensed under the MIT License.
HTML