History

laravel: add version 8

Simon Legner committed 5 years ago

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

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

Unified · Split

lib/docs/scrapers/laravel.rb+13−0
@@ -29,6 +29,19 @@ module Docs · 28 unmodified lines
29 Laravel is a trademark of Taylor Otwell.29 Laravel is a trademark of Taylor Otwell.
30 HTML30 HTML
31 31
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
32 version '7' do45 version '7' do
33 self.release = '7.30.1'46 self.release = '7.30.1'
34 self.root_path = '/api/7.x/index.html'47 self.root_path = '/api/7.x/index.html'