-
Notifications
You must be signed in to change notification settings - Fork 3
/
.sami.php
34 lines (29 loc) · 943 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
29
30
31
32
33
34
<?php
/**
* Sami
*
* @link https://github.com/FriendsOfPHP/Sami
* @package WPSteak
*/
use Sami\RemoteRepository\GitHubRemoteRepository;
use Sami\Version\GitVersionCollection;
use Sami\Parser\Filter\PublicFilter;
define( 'DS', DIRECTORY_SEPARATOR );
$repository = 'apiki/wpsteak';
$relative_dir = 'src';
$dir = __DIR__ . DS . $relative_dir;
$documentation_dir = __DIR__ . DS . 'api-reference';
$versions = GitVersionCollection::create( $dir )
->addFromTags( '*.*.*' )
->add( 'master', 'master branch' );
return new \Sami\Sami(
$dir,
[
'title' => 'WP Steak',
'versions' => $versions,
'remote_repository' => new GitHubRemoteRepository( $repository, dirname( $dir ) ),
'build_dir' => $documentation_dir . DS . 'build' . DS . '%version%',
'cache_dir' => $documentation_dir . DS . 'cache' . DS . '%version%',
'filter' => new PublicFilter(),
]
);