retry sami

This commit is contained in:
dongwei 2019-01-14 18:49:09 +08:00
parent f58a5da8f9
commit cb3787fb74

18
src/Sami/config.php Normal file
View File

@ -0,0 +1,18 @@
<?php
/**
* Created by PhpStorm.
* User: dongwei
* Date: 2019/1/14
* Time: 6:46 PM
*/
$dir = \Illuminate\Support\Facades\App::basePath().'/Rpc/';
$iterator = \Symfony\Component\Finder\Finder::create()->files()->name('*.php')->in($dir);
return new \Sami\Sami($iterator,[
'theme' => 'default',//sami安装后默认的有一套文档页面风格模板名称是default。位置在vendor/sami/sami/Sami/Resources/themes/下。
'title' => 'Mysic',//项目名称
'build_dir' => __DIR__.'/document/',//设置文档生成后的保存路径
'cache_dir' => __DIR__.'/document/cache/',//设置文档生成时的缓存路径
'default_opened_level' => 2
]);