From 690951bd4fd217941f058a40a7ce387c27e3683f Mon Sep 17 00:00:00 2001 From: Thibaut Courouble Date: Sun, 25 Feb 2018 10:41:11 -0500 Subject: [PATCH] Update Laravel documentation (5.6.0) --- lib/docs/scrapers/laravel.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/docs/scrapers/laravel.rb b/lib/docs/scrapers/laravel.rb index c5dc9fef..758563be 100644 --- a/lib/docs/scrapers/laravel.rb +++ b/lib/docs/scrapers/laravel.rb @@ -29,6 +29,19 @@ module Docs Laravel is a trademark of Taylor Otwell. HTML + version '5.6' do + self.release = '5.6.0' + self.root_path = '/api/5.6/index.html' + self.initial_paths = %w(/docs/5.6/installation /api/5.6/classes.html) + + options[:only_patterns] = [%r{\A/api/5\.6/}, %r{\A/docs/5\.6/}] + + options[:fix_urls] = ->(url) do + url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/5.6/" + url + end + end + version '5.5' do self.release = '5.5.28' self.root_path = '/api/5.5/index.html'