[devdocsgjs/main: 1140/1867] laravel: add version 8




commit daaf1d6598cbe99cc525dd3c32aec4e8a559b232
Author: Simon Legner <Simon Legner gmail com>
Date:   Sat Nov 14 13:18:19 2020 +0100

    laravel: add version 8

 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 c7c79ae3..51a0cced 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 '8' do
+      self.release = '8.4.1'
+      self.root_path = '/api/8.x/index.html'
+      self.initial_paths = %w(/docs/8.x/installation /api/8.x/classes.html)
+
+      options[:only_patterns] = [%r{\A/api/8\.x/}, %r{\A/docs/8\.x/}]
+
+      options[:fix_urls] = ->(url) do
+        url.sub! %r{#{Regexp.escape(Laravel.base_url)}/docs\/(?!\d)}, "#{Laravel.base_url}/docs/8.x/"
+        url
+      end
+    end
+
     version '7' do
       self.release = '7.30.1'
       self.root_path = '/api/7.x/index.html'


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]