From cb3787fb74292cdb26a3aac5ebd452c13291f8d0 Mon Sep 17 00:00:00 2001 From: dongwei <838456736@qq.com> Date: Mon, 14 Jan 2019 18:49:09 +0800 Subject: [PATCH] retry sami --- src/Sami/config.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Sami/config.php diff --git a/src/Sami/config.php b/src/Sami/config.php new file mode 100644 index 0000000..ada638c --- /dev/null +++ b/src/Sami/config.php @@ -0,0 +1,18 @@ +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 +]);