Unified · Split
| @@ -423,7 +423,7 @@ credits = [ · 422 unmodified lines | ||
| 423 | 423 | 'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE' |
| 424 | 424 | ], [ |
| 425 | 425 | 'Koa', |
| 426 | − '2018 Koa contributors', | |
| 426 | + '2020 Koa contributors', | |
| 427 | 427 | 'MIT', |
| 428 | 428 | 'https://raw.githubusercontent.com/koajs/koa/master/LICENSE' |
| 429 | 429 | ], [ |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | ||
| 3 | 3 | module Docs |
| 4 | 4 | class Koa < Github |
| 5 | 5 | self.base_url = 'https://github.com/koajs/koa/blob/master/docs/' |
| 6 | − self.release = '2.6.1' | |
| 6 | + self.release = '2.13.0' | |
| 7 | 7 | |
| 8 | 8 | self.root_path = 'api/index.md' |
| 9 | 9 | self.initial_paths = %w[ |
| @@ -30,8 +30,13 @@ module Docs · 20 unmodified lines | ||
| 30 | 30 | options[:trailing_slash] = false |
| 31 | 31 | options[:container] = '.markdown-body' |
| 32 | 32 | |
| 33 | + options[:fix_urls] = ->(url) do | |
| 34 | + url.sub! 'https://koajs.com/#error-handling', Koa.base_url + '/error-handling.md' | |
| 35 | + url | |
| 36 | + end | |
| 37 | + | |
| 33 | 38 | options[:attribution] = <<-HTML |
| 34 | − © 2018 Koa contributors<br> | |
| 39 | + © 2020 Koa contributors<br> | |
| 35 | 40 | Licensed under the MIT License. |
| 36 | 41 | HTML |
| 37 | 42 | |