Unified · Split
| @@ -34,7 +34,7 @@ module Docs · 33 unmodified lines | ||
| 34 | 34 | HTML |
| 35 | 35 | |
| 36 | 36 | version '5.4' do |
| 37 | − self.release = '5.4.23' | |
| 37 | + self.release = '5.4.30' | |
| 38 | 38 | self.root_path = '/api/5.4/index.html' |
| 39 | 39 | self.initial_paths = %w(/docs/5.4/installation /api/5.4/classes.html) |
| 40 | 40 | |
| @@ -84,5 +84,19 @@ module Docs · 43 unmodified lines | ||
| 84 | 84 | url |
| 85 | 85 | end |
| 86 | 86 | end |
| 87 | + | |
| 88 | + | |
| 89 | + version '4.2' do | |
| 90 | + self.release = '4.2.11' | |
| 91 | + self.root_path = '/api/4.2/index.html' | |
| 92 | + self.initial_paths = %w(/docs/4.2/installation /api/4.2/classes.html) | |
| 93 | + | |
| 94 | + options[:only_patterns] = [%r{\A/api/4\.2/}, %r{\A/docs/4\.2/}] | |
| 95 | + | |
| 96 | + options[:fix_urls] = ->(url) do | |
| 97 | + url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/4.2/" | |
| 98 | + url | |
| 99 | + end | |
| 100 | + end | |
| 87 | 101 | end |
| 88 | 102 | end |