History

Update Laravel documentation (5.4)

Thibaut Courouble committed 9 years ago

Commit d62e1341 parent 72620621 file · +14 −1Browse files

Unified · Split

lib/docs/scrapers/laravel.rb+14−1
@@ -33,8 +33,21 @@ module Docs · 32 unmodified lines
33 Laravel is a trademark of Taylor Otwell.33 Laravel is a trademark of Taylor Otwell.
34 HTML34 HTML
35 35
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
36 version '5.3' do49 version '5.3' do
37 self.release = '5.3.15'50 self.release = '5.3.30'
38 self.root_path = '/api/5.3/index.html'51 self.root_path = '/api/5.3/index.html'
39 self.initial_paths = %w(/docs/5.3/installation /api/5.3/classes.html)52 self.initial_paths = %w(/docs/5.3/installation /api/5.3/classes.html)
40 53