added support for legacy tickets, fixed switching of modes and also style updates
This commit is contained in:
@@ -7,6 +7,7 @@ namespace Modules\Documentation\Providers;
|
||||
use Illuminate\Support\Facades\Blade;
|
||||
use Illuminate\Support\Facades\Config;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Modules\Documentation\Console\ImportDocumentationCommand;
|
||||
|
||||
final class DocumentationServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -43,7 +44,7 @@ final class DocumentationServiceProvider extends ServiceProvider
|
||||
}
|
||||
|
||||
$this->commands([
|
||||
\Modules\Documentation\Console\ImportDocumentationCommand::class,
|
||||
ImportDocumentationCommand::class,
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -62,12 +63,12 @@ final class DocumentationServiceProvider extends ServiceProvider
|
||||
$paths = [$sourcePath];
|
||||
|
||||
foreach (Config::get('view.paths', []) as $path) {
|
||||
if (is_dir($path . '/modules/documentation')) {
|
||||
array_unshift($paths, $path . '/modules/documentation');
|
||||
if (is_dir($path.'/modules/documentation')) {
|
||||
array_unshift($paths, $path.'/modules/documentation');
|
||||
}
|
||||
}
|
||||
|
||||
$this->loadViewsFrom($paths, 'documentation');
|
||||
Blade::anonymousComponentPath($sourcePath . '/components', 'documentation');
|
||||
Blade::anonymousComponentPath($sourcePath.'/components', 'documentation');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user