History

Finish Koa scraper

Thibaut Courouble committed 8 years ago

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

Showing the changes to lib (2 of 8 files). Show all

Unified · Split

2 files
  1. lib/docs/filters/koa/entries.rb +1 −1
  2. lib/docs/scrapers/koa.rb +2 −2
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