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
4646 end
4747
4848 def include_default_entry?
49− subpath != '/api/5.1/classes.html'
49+ subpath != '/api/5.2/classes.html'
5050 end
5151 end
5252 end
lib/docs/scrapers/laravel.rb+20−19
@@ -3,12 +3,12 @@ module Docs · 2 unmodified lines
33 self.name = 'Laravel'
44 self.slug = 'laravel'
55 self.type = 'laravel'
6− self.version = '5.1.1'
7− self.base_url = 'http://laravel.com'
8− self.root_path = '/api/5.1/index.html'
9− self.initial_paths = %w(/docs/5.1/installation /api/5.1/classes.html)
6+ self.version = '5.2.0'
7+ self.base_url = 'https://laravel.com'
8+ self.root_path = '/api/5.2/index.html'
9+ self.initial_paths = %w(/docs/5.2/installation /api/5.2/classes.html)
1010 self.links = {
11− home: 'http://laravel.com/',
11+ home: 'https://laravel.com/',
1212 code: 'https://github.com/laravel/laravel'
1313 }
1414
@@ -19,24 +19,25 @@ module Docs · 4 unmodified lines
1919 }
2020
2121 options[:only_patterns] = [
22− /\A\/api\/5\.1\//,
23− /\A\/docs\/5\.1\//]
22+ /\A\/api\/5\.2\//,
23+ /\A\/docs\/5\.2\//]
2424
2525 options[:skip] = %w(
26− /docs/5.1/quick
27− /docs/5.1/releases
28− /docs/5.1/artisan
29− /docs/5.1/commands
30− /api/5.1/panel.html
31− /api/5.1/namespaces.html
32− /api/5.1/interfaces.html
33− /api/5.1/traits.html
34− /api/5.1/doc-index.html
35− /api/5.1/Illuminate.html
36− /api/5.1/search.html)
26+ /docs/5.2/quick
27+ /docs/5.2/releases
28+ /docs/5.2/artisan
29+ /docs/5.2/commands
30+ /api/5.2/.html
31+ /api/5.2/panel.html
32+ /api/5.2/namespaces.html
33+ /api/5.2/interfaces.html
34+ /api/5.2/traits.html
35+ /api/5.2/doc-index.html
36+ /api/5.2/Illuminate.html
37+ /api/5.2/search.html)
3738
3839 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/"
4041 url
4142 end
4243