[devdocsgjs/main: 1303/1867] Update Koa documentation
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1303/1867] Update Koa documentation
- Date: Fri, 19 Nov 2021 23:47:52 +0000 (UTC)
commit 771d429ea35db112f0e2c28e44d07446ef51d96a
Author: Phil Scherer <pnscher evoforge org>
Date: Tue Nov 24 20:33:33 2020 +0000
Update Koa documentation
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/scrapers/koa.rb | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 476d6888..1c287f8c 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -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'
], [
diff --git a/lib/docs/scrapers/koa.rb b/lib/docs/scrapers/koa.rb
index cac14920..5b4d96b0 100644
--- a/lib/docs/scrapers/koa.rb
+++ b/lib/docs/scrapers/koa.rb
@@ -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
- © 2018 Koa contributors<br>
+ © 2020 Koa contributors<br>
Licensed under the MIT License.
HTML
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]