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 @@
1[1[
2 [2 [
3 "2018-07-08",3 "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>"
5 ], [5 ], [
6 "2018-03-26",6 "2018-03-26",
7 "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>."7 "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
365 'Steven Sanderson, the Knockout.js team, and other contributors',365 'Steven Sanderson, the Knockout.js team, and other contributors',
366 'MIT',366 'MIT',
367 'https://raw.githubusercontent.com/knockout/knockout/master/LICENSE'367 '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'
368 ], [373 ], [
369 'Kotlin',374 'Kotlin',
370 '2010-2018 JetBrains s.r.o.',375 '2010-2018 JetBrains s.r.o.',
assets/stylesheets/global/_icons.scss+1−0
@@ -93,6 +93,7 @@ · 92 unmodified lines
93._icon-svg:before { background-position: -5rem -5rem; }93._icon-svg:before { background-position: -5rem -5rem; }
94._icon-marionette:before { background-position: -6rem -5rem; }94._icon-marionette:before { background-position: -6rem -5rem; }
95._icon-jsdoc:before,95._icon-jsdoc:before,
96._icon-koa:before,
96._icon-mongoose:before { background-position: -7rem -5rem; }97._icon-mongoose:before { background-position: -7rem -5rem; }
97._icon-phpunit:before { background-position: -8rem -5rem; }98._icon-phpunit:before { background-position: -8rem -5rem; }
98._icon-nokogiri:before { background-position: -9rem -5rem; @extend %darkIconFix !optional; }99._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
15 (slug.include?('index') && !node.content.include?('.'))15 (slug.include?('index') && !node.content.include?('.'))
16 end16 end
17 .map do |node|17 .map do |node|
18 name = node.content.sub(/\(.*\)$/, '')18 name = node.content.strip.sub(/\(.*\)\z/, '()')
19 type = 'API' if type == @root_type && name.include?('.')19 type = 'API' if type == @root_type && name.include?('.')
20 [name, node['id'], type]20 [name, node['id'], type]
21 end21 end
lib/docs/scrapers/koa.rb+2−2
@@ -3,7 +3,7 @@ · 2 unmodified lines
3module Docs3module Docs
4 class Koa < Github4 class Koa < Github
5 self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'5 self.base_url = 'https://github.com/koajs/koa/blob/master/docs/'
6 self.release = '2.4.1'6 self.release = '2.5.1'
7 7
8 self.root_path = 'api/index.md'8 self.root_path = 'api/index.md'
9 self.initial_paths = %w[9 self.initial_paths = %w[
@@ -31,7 +31,7 @@ module Docs · 21 unmodified lines
31 options[:container] = '.markdown-body'31 options[:container] = '.markdown-body'
32 32
33 options[:attribution] = <<-HTML33 options[:attribution] = <<-HTML
34 &copy; 2017 Koa contributors<br>34 &copy; 2018 Koa contributors<br>
35 Licensed under the MIT License.35 Licensed under the MIT License.
36 HTML36 HTML
37 end37 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 @@
1https://github.com/github/explore/blob/db7f2f28385d413ba9e03a635009b3434c9710fc/topics/koa/koa.png