We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b7aa34 commit 2ad4662Copy full SHA for 2ad4662
1 file changed
lib/docs/scrapers/laravel.rb
@@ -29,6 +29,19 @@ class Laravel < UrlScraper
29
Laravel is a trademark of Taylor Otwell.
30
HTML
31
32
+ version '5.7' do
33
+ self.release = '5.7.7'
34
+ self.root_path = '/api/5.7/index.html'
35
+ self.initial_paths = %w(/docs/5.7/installation /api/5.7/classes.html)
36
+
37
+ options[:only_patterns] = [%r{\A/api/5\.7/}, %r{\A/docs/5\.7/}]
38
39
+ options[:fix_urls] = ->(url) do
40
+ url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.7/"
41
+ url
42
+ end
43
44
45
version '5.6' do
46
self.release = '5.6.33'
47
self.root_path = '/api/5.6/index.html'
0 commit comments