| @@ -3,12 +3,12 @@ module Docs · 2 unmodified lines |
| 3 | 3 | self.name = 'Laravel' |
| 4 | 4 | self.slug = 'laravel' |
| 5 | 5 | 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) |
| 10 | 10 | self.links = { |
| 11 | | − home: 'http://laravel.com/', |
| 11 | + home: 'https://laravel.com/', |
| 12 | 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 | 21 | options[:only_patterns] = [ |
| 22 | | − /\A\/api\/5\.1\//, |
| 23 | | − /\A\/docs\/5\.1\//] |
| 22 | + /\A\/api\/5\.2\//, |
| 23 | + /\A\/docs\/5\.2\//] |
| 24 | 24 | |
| 25 | 25 | 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) |
| 37 | 38 | |
| 38 | 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 | 41 | url |
| 41 | 42 | end |
| 42 | 43 | |