mirror of
https://github.com/devcode-it/openstamanager.git
synced 2024-12-24 22:42:33 +01:00
30 lines
603 B
Plaintext
Executable File
30 lines
603 B
Plaintext
Executable File
<?php
|
|
|
|
use Sami\Sami;
|
|
use Sami\Parser\Filter\TrueFilter;
|
|
use Symfony\Component\Finder\Finder;
|
|
|
|
$finder = Finder::create()
|
|
->files()
|
|
->name('*.php')
|
|
->exclude('.couscous')
|
|
->exclude('node_modules')
|
|
->exclude('vendor')
|
|
->exclude('tests')
|
|
->ignoreDotFiles(true)
|
|
->ignoreVCS(true)
|
|
->in(__DIR__);
|
|
|
|
$sami = new Sami($finder, [
|
|
'theme' => 'default',
|
|
'title' => 'OpenSTAManager',
|
|
'build_dir' => __DIR__.'/.couscous/generated/docs',
|
|
'cache_dir' => __DIR__.'/.couscous/cache',
|
|
]);
|
|
|
|
$sami['filter'] = function () {
|
|
return new TrueFilter();
|
|
};
|
|
|
|
return $sami;
|