forked from mtvbrianking/laravel-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.sami.dist
36 lines (29 loc) · 794 Bytes
/
.sami.dist
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
35
36
<?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')
->exclude('tests')
->exclude('vendor')
->in($dir);
$versions = GitVersionCollection::create($dir)
->add('master', 'master branch');
$repo = new GitHubRemoteRepository(
'mtvbrianking/laravel-xml',
dirname($dir),
'https://github.com/'
);
$options = [
'theme' => 'default',
'versions' => $versions,
'title' => 'Laravel XML',
'build_dir' => __DIR__ . '/docs',
'cache_dir' => __DIR__ . '/docs/cache',
'remote_repository' => $repo,
'default_opened_level' => 3,
];
return new Sami($iterator, $options);