Showing the changes to lib/docs (1 of 1 file). Show all
Unified · Split
| @@ -29,6 +29,19 @@ module Docs · 28 unmodified lines | ||
| 29 | 29 | Laravel is a trademark of Taylor Otwell. |
| 30 | 30 | 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 | 45 | version '7' do |
| 33 | 46 | self.release = '7.30.1' |
| 34 | 47 | self.root_path = '/api/7.x/index.html' |