forked from composer/getcomposer.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsami-config.php
More file actions
29 lines (24 loc) · 785 Bytes
/
sami-config.php
File metadata and controls
29 lines (24 loc) · 785 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
29
<?php
use Sami\Sami;
use Sami\RemoteRepository\GitHubRemoteRepository;
use Symfony\Component\Finder\Finder;
use Sami\Version\GitVersionCollection;
$dir = __DIR__.'/composer-src';
$iterator = Finder::create()
->files()
->name('*.php')
->in($dir.'/src')
;
$versions = GitVersionCollection::create($dir)
->addFromTags('*')
->add('master', 'master branch')
;
return new Sami($iterator, array(
'theme' => 'default',
'versions' => $versions,
'title' => 'Composer API',
'build_dir' => __DIR__.'/web/apidoc/%version%',
'cache_dir' => __DIR__.'/cache/%version%',
'remote_repository' => new GitHubRemoteRepository('composer/composer', $dir),
'default_opened_level' => 2,
));