Skip to content

Commit d62e134

Browse files
committed
Update Laravel documentation (5.4)
1 parent 7262062 commit d62e134

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

lib/docs/scrapers/laravel.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,21 @@ class Laravel < UrlScraper
3333
Laravel is a trademark of Taylor Otwell.
3434
HTML
3535

36+
version '5.4' do
37+
self.release = '5.4.9'
38+
self.root_path = '/api/5.4/index.html'
39+
self.initial_paths = %w(/docs/5.4/installation /api/5.4/classes.html)
40+
41+
options[:only_patterns] = [%r{\A/api/5\.4/}, %r{\A/docs/5\.4/}]
42+
43+
options[:fix_urls] = ->(url) do
44+
url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.4/"
45+
url
46+
end
47+
end
48+
3649
version '5.3' do
37-
self.release = '5.3.15'
50+
self.release = '5.3.30'
3851
self.root_path = '/api/5.3/index.html'
3952
self.initial_paths = %w(/docs/5.3/installation /api/5.3/classes.html)
4053

0 commit comments

Comments
 (0)