Skip to content

Commit 690951b

Browse files
committed
Update Laravel documentation (5.6.0)
1 parent fbdbc8d commit 690951b

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

lib/docs/scrapers/laravel.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ class Laravel < UrlScraper
2929
Laravel is a trademark of Taylor Otwell.
3030
HTML
3131

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+
end
44+
3245
version '5.5' do
3346
self.release = '5.5.28'
3447
self.root_path = '/api/5.5/index.html'

0 commit comments

Comments
 (0)