We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbdbc8d commit 690951bCopy full SHA for 690951b
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.6' do
33
+ self.release = '5.6.0'
34
+ self.root_path = '/api/5.6/index.html'
35
+ self.initial_paths = %w(/docs/5.6/installation /api/5.6/classes.html)
36
+
37
+ options[:only_patterns] = [%r{\A/api/5\.6/}, %r{\A/docs/5\.6/}]
38
39
+ options[:fix_urls] = ->(url) do
40
+ url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.6/"
41
+ url
42
+ end
43
44
45
version '5.5' do
46
self.release = '5.5.28'
47
self.root_path = '/api/5.5/index.html'
0 commit comments