Showing the changes to lib (2 of 8 files). Show all
Unified · Split
| @@ -15,7 +15,7 @@ module Docs · 14 unmodified lines | |||
| 15 | (slug.include?('index') && !node.content.include?('.')) | 15 | (slug.include?('index') && !node.content.include?('.')) |
| 16 | end | 16 | 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 | end | 21 | end |
| @@ -3,7 +3,7 @@ · 2 unmodified lines | |||
| 3 | module Docs | 3 | module Docs |
| 4 | class Koa < Github | 4 | 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] = <<-HTML | 33 | options[:attribution] = <<-HTML |
| 34 | © 2017 Koa contributors<br> | 34 | © 2018 Koa contributors<br> |
| 35 | Licensed under the MIT License. | 35 | Licensed under the MIT License. |
| 36 | HTML | 36 | HTML |
| 37 | end | 37 | end |