History

Update Laravel documentation (5.2.0)

Thibaut committed 10 years ago

Commit bb74d1c1 parent 5eb46b72 files · +21 −20Browse files

Unified · Split

2 files
  1. lib/docs/filters/laravel/entries.rb +1 −1
  2. lib/docs/scrapers/laravel.rb +20 −19
lib/docs/filters/laravel/entries.rb+1−1
@@ -46,7 +46,7 @@ module Docs · 45 unmodified lines
46 end46 end
47 47
48 def include_default_entry?48 def include_default_entry?
49 subpath != '/api/5.1/classes.html'49 subpath != '/api/5.2/classes.html'
50 end50 end
51 end51 end
52 end52 end
lib/docs/scrapers/laravel.rb+20−19
@@ -3,12 +3,12 @@ module Docs · 2 unmodified lines
3 self.name = 'Laravel'3 self.name = 'Laravel'
4 self.slug = 'laravel'4 self.slug = 'laravel'
5 self.type = 'laravel'5 self.type = 'laravel'
6 self.version = '5.1.1'6 self.version = '5.2.0'
7 self.base_url = 'http://laravel.com'7 self.base_url = 'https://laravel.com'
8 self.root_path = '/api/5.1/index.html'8 self.root_path = '/api/5.2/index.html'
9 self.initial_paths = %w(/docs/5.1/installation /api/5.1/classes.html)9 self.initial_paths = %w(/docs/5.2/installation /api/5.2/classes.html)
10 self.links = {10 self.links = {
11 home: 'http://laravel.com/',11 home: 'https://laravel.com/',
12 code: 'https://github.com/laravel/laravel'12 code: 'https://github.com/laravel/laravel'
13 }13 }
14 14
@@ -19,24 +19,25 @@ module Docs · 4 unmodified lines
19 }19 }
20 20
21 options[:only_patterns] = [21 options[:only_patterns] = [
22 /\A\/api\/5\.1\//,22 /\A\/api\/5\.2\//,
23 /\A\/docs\/5\.1\//]23 /\A\/docs\/5\.2\//]
24 24
25 options[:skip] = %w(25 options[:skip] = %w(
26 /docs/5.1/quick26 /docs/5.2/quick
27 /docs/5.1/releases27 /docs/5.2/releases
28 /docs/5.1/artisan28 /docs/5.2/artisan
29 /docs/5.1/commands29 /docs/5.2/commands
30 /api/5.1/panel.html30 /api/5.2/.html
31 /api/5.1/namespaces.html31 /api/5.2/panel.html
32 /api/5.1/interfaces.html32 /api/5.2/namespaces.html
33 /api/5.1/traits.html33 /api/5.2/interfaces.html
34 /api/5.1/doc-index.html34 /api/5.2/traits.html
35 /api/5.1/Illuminate.html35 /api/5.2/doc-index.html
36 /api/5.1/search.html)36 /api/5.2/Illuminate.html
37 /api/5.2/search.html)
37 38
38 options[:fix_urls] = ->(url) do39 options[:fix_urls] = ->(url) do
39 url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.1/"40 url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.2/"
40 url41 url
41 end42 end
42 43