Unified · Split
| @@ -46,7 +46,7 @@ module Docs · 45 unmodified lines | |||
| 46 | end | 46 | 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 | end | 50 | end |
| 51 | end | 51 | end |
| 52 | end | 52 | end |
| @@ -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/quick | 26 | /docs/5.2/quick |
| 27 | /docs/5.1/releases | 27 | /docs/5.2/releases |
| 28 | /docs/5.1/artisan | 28 | /docs/5.2/artisan |
| 29 | /docs/5.1/commands | 29 | /docs/5.2/commands |
| 30 | /api/5.1/panel.html | 30 | /api/5.2/.html |
| 31 | /api/5.1/namespaces.html | 31 | /api/5.2/panel.html |
| 32 | /api/5.1/interfaces.html | 32 | /api/5.2/namespaces.html |
| 33 | /api/5.1/traits.html | 33 | /api/5.2/interfaces.html |
| 34 | /api/5.1/doc-index.html | 34 | /api/5.2/traits.html |
| 35 | /api/5.1/Illuminate.html | 35 | /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) do | 39 | 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 | url | 41 | url |
| 41 | end | 42 | end |
| 42 | 43 | ||