Skip to content

Commit ad7be4d

Browse files
committed
Finish Koa scraper
1 parent b97cfa6 commit ad7be4d

File tree

8 files changed

+10
-5
lines changed

8 files changed

+10
-5
lines changed

assets/javascripts/news.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
[
33
"2018-07-08",
4-
"New documentations: <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/terraform/\">Terraform</a>"
4+
"New documentations: <a href=\"/leaflet/\">Leaflet</a>, <a href=\"/terraform/\">Terraform</a> and <a href=\"/koa/\">Koa</a>"
55
], [
66
"2018-03-26",
77
"DevDocs is joining the freeCodeCamp community. Read the announcement <a href=\"https://medium.freecodecamp.org/devdocs-is-joining-the-freecodecamp-community-ae185a1c14a6\" target=\"_blank\">here</a>."

assets/javascripts/templates/pages/about_tmpl.coffee

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ credits = [
365365
'Steven Sanderson, the Knockout.js team, and other contributors',
366366
'MIT',
367367
'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE'
368+
], [
369+
'Koa',
370+
'2018 Koa contributors',
371+
'MIT',
372+
'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
368373
], [
369374
'Kotlin',
370375
'2010-2018 JetBrains s.r.o.',

assets/stylesheets/global/_icons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
._icon-svg:before { background-position: -5rem -5rem; }
9494
._icon-marionette:before { background-position: -6rem -5rem; }
9595
._icon-jsdoc:before,
96+
._icon-koa:before,
9697
._icon-mongoose:before { background-position: -7rem -5rem; }
9798
._icon-phpunit:before { background-position: -8rem -5rem; }
9899
._icon-nokogiri:before { background-position: -9rem -5rem; @extend %darkIconFix !optional; }

lib/docs/filters/koa/entries.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def additional_entries
1515
(slug.include?('index') && !node.content.include?('.'))
1616
end
1717
.map do |node|
18-
name = node.content.sub(/\(.*\)$/, '')
18+
name = node.content.strip.sub(/\(.*\)\z/, '()')
1919
type = 'API' if type == @root_type && name.include?('.')
2020
[name, node['id'], type]
2121
end

lib/docs/scrapers/koa.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Docs
44
class Koa < Github
55
self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'
6-
self.release = '2.4.1'
6+
self.release = '2.5.1'
77

88
self.root_path = 'api/index.md'
99
self.initial_paths = %w[
@@ -31,7 +31,7 @@ class Koa < Github
3131
options[:container] = '.markdown-body'
3232

3333
options[:attribution] = <<-HTML
34-
&copy; 2017 Koa contributors<br>
34+
&copy; 2018 Koa contributors<br>
3535
Licensed under the MIT License.
3636
HTML
3737
end

public/icons/docs/koa/16.png

-847 Bytes
Binary file not shown.
-1.51 KB
Binary file not shown.

public/icons/docs/koa/SOURCE

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)