History

laravel: add version 8

Simon Legner committed 5 years ago

Commit daaf1d61 parent 56717581 file · +13 −0Browse files

Showing the changes to lib/docs (1 of 1 file). Show all

Unified · Split

lib/docs/scrapers/laravel.rb+13−0
@@ -29,6 +29,19 @@ module Docs · 28 unmodified lines
2929 Laravel is a trademark of Taylor Otwell.
3030 HTML
3131
32+ version '8' do
33+ self.release = '8.4.1'
34+ self.root_path = '/api/8.x/index.html'
35+ self.initial_paths = %w(/docs/8.x/installation /api/8.x/classes.html)
36+
37+ options[:only_patterns] = [%r{\A/api/8\.x/}, %r{\A/docs/8\.x/}]
38+
39+ options[:fix_urls] = ->(url) do
40+ url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/8.x/"
41+ url
42+ end
43+ end
44+
3245 version '7' do
3346 self.release = '7.30.1'
3447 self.root_path = '/api/7.x/index.html'