forked from okta/okta-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsami.php
More file actions
28 lines (22 loc) · 700 Bytes
/
sami.php
File metadata and controls
28 lines (22 loc) · 700 Bytes
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 Symfony\Component\Finder\Finder;
use Sami\Version\GitVersionCollection;
use Sami\RemoteRepository\GitHubRemoteRepository;
$dir = __DIR__ . '/src';
$iterator = Finder::create()
->files()
->name('*.php')
->in($dir)
;
$versions = GitVersionCollection::create($dir)
->addFromTags('*')
->add('develop', 'Develop')
;
return new Sami($iterator, [
'title' => 'Okta PHP SDK',
'versions' => $versions,
'build_dir' => __DIR__ . '/build/gh-pages/%version%',
'cache_dir' => __DIR__ . '/build/doc_cache/%version%',
'remote_repository' => new GitHubRemoteRepository('okta/okta-sdk-php', dirname($dir)),
]);