forked from authbucket/oauth2-symfony-bundle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.sami.php
28 lines (24 loc) · 734 Bytes
/
.sami.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()
->files()
->name('*.php')
->exclude('Resources')
->in($dir = 'src');
$versions = GitVersionCollection::create($dir)
->add('develop', 'develop branch')
->add('master', 'master branch')
->addFromTags('3.*')
->addFromTags('4.*')
->addFromTags('5.*');
return new Sami($iterator, [
'theme' => 'default',
'versions' => $versions,
'title' => 'AuthBucket\Bundle\OAuth2Bundle API',
'build_dir' => __DIR__.'/build/sami/%version%',
'cache_dir' => __DIR__.'/build/cache/sami/%version%',
'include_parent_data' => false,
'default_opened_level' => 3,
]);