History

Finish Koa scraper

Thibaut Courouble committed 8 years ago

Commit ad7be4d1 parent b97cfa68 files · +8 −3Browse files

Unified · Split

8 files
  1. assets/javascripts/news.json +1 −1
  2. assets/javascripts/templates/pages/about_tmpl.coffee +5 −0
  3. assets/stylesheets/global/_icons.scss +1 −0
  4. lib/docs/filters/koa/entries.rb +1 −1
  5. lib/docs/scrapers/koa.rb +2 −2
  6. public/icons/docs/koa/16.png +0 −0
  7. public/icons/docs/koa/16@2x.png +0 −0
  8. public/icons/docs/koa/SOURCE +0 −1
assets/javascripts/news.json+1−1
@@ -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+5−0
@@ -365,6 +365,11 @@ credits = [ · 364 unmodified lines
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+1−0
@@ -93,6 +93,7 @@ · 92 unmodified lines
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+1−1
@@ -15,7 +15,7 @@ module Docs · 14 unmodified lines
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+2−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.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 @@ module Docs · 21 unmodified lines
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+0−0

Binary file not shown.

public/icons/docs/koa/16@2x.png+0−0

Binary file not shown.

public/icons/docs/koa/SOURCE+0−1
@@ -1 +0,0 @@
1−https://github.com/github/explore/blob/db7f2f28385d413ba9e03a635009b3434c9710fc/topics/koa/koa.png