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.
2 parents f4609a1 + a8ed382 commit 2b63419Copy full SHA for 2b63419
lib/docs/scrapers/laravel.rb
@@ -29,6 +29,20 @@ class Laravel < UrlScraper
29
Laravel is a trademark of Taylor Otwell.
30
HTML
31
32
+ version '11' do
33
+ self.release = '11.11.1'
34
+ self.root_path = '/api/11.x/index.html'
35
+ self.initial_paths = %w(/docs/11.x/installation /api/11.x/classes.html)
36
+
37
+ options[:only_patterns] = [%r{\A/api/11\.x/}, %r{\A/docs/11\.x/}]
38
39
+ options[:fix_urls] = ->(url) do
40
+ url.sub! %r{11.x/+}, "11.x/"
41
+ url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?![1-9]?\d)}, "#{Laravel.base_url}/docs/11.x/"
42
+ url
43
+ end
44
45
46
version '10' do
47
self.release = '10.13.0'
48
self.root_path = '/api/10.x/index.html'
0 commit comments