History

Update Koa documentation

Phil Scherer committed 5 years ago

Commit 771d4291 parent 86eb7252 files · +8 −3Browse files

Showing the changes to lib/docs (1 of 2 files). Show all

Unified · Split

lib/docs/scrapers/koa.rb+7−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.6.1'6 self.release = '2.13.0'
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[
@@ -30,8 +30,13 @@ module Docs · 20 unmodified lines
30 options[:trailing_slash] = false30 options[:trailing_slash] = false
31 options[:container] = '.markdown-body'31 options[:container] = '.markdown-body'
32 32
33 options[:fix_urls] = ->(url) do
34 url.sub! 'https://koajs.com/#error-handling', Koa.base_url + '/error-handling.md'
35 url
36 end
37
33 options[:attribution] = <<-HTML38 options[:attribution] = <<-HTML
34 &copy; 2018 Koa contributors<br>39 &copy; 2020 Koa contributors<br>
35 Licensed under the MIT License.40 Licensed under the MIT License.
36 HTML41 HTML
37 42