History

Update Koa documentation

Phil Scherer committed 5 years ago

Commit 771d4291 parent 86eb7252 files · +8 −3Browse files

Unified · Split

2 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/scrapers/koa.rb +7 −2
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -423,7 +423,7 @@ credits = [ · 422 unmodified lines
423423 'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE'
424424 ], [
425425 'Koa',
426− '2018 Koa contributors',
426+ '2020 Koa contributors',
427427 'MIT',
428428 'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
429429 ], [
lib/docs/scrapers/koa.rb+7−2
@@ -3,7 +3,7 @@ · 2 unmodified lines
33 module Docs
44 class Koa < Github
55 self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'
6− self.release = '2.6.1'
6+ self.release = '2.13.0'
77
88 self.root_path = 'api/index.md'
99 self.initial_paths = %w[
@@ -30,8 +30,13 @@ module Docs · 20 unmodified lines
3030 options[:trailing_slash] = false
3131 options[:container] = '.markdown-body'
3232
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+
3338 options[:attribution] = <<-HTML
34− &copy; 2018 Koa contributors<br>
39+ &copy; 2020 Koa contributors<br>
3540 Licensed under the MIT License.
3641 HTML
3742