-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsami-config.php
More file actions
31 lines (24 loc) · 867 Bytes
/
Copy pathsami-config.php
File metadata and controls
31 lines (24 loc) · 867 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
30
31
<?php
use Sami\RemoteRepository\GitHubRemoteRepository;
use Sami\Version\GitVersionCollection;
use Sami\Sami;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()->
files()->
name('*.php')->
in(realpath(__DIR__.'/lib'));
// Sami doesn't seem to write out the docs folder for v1 and v2
$versions = GitVersionCollection::create(realpath(__DIR__))->
// addFromTags('v1.*')->
// addFromTags('v2.*')->
addFromTags('v3.*')->
addFromTags('v4.*')->
add('master', 'master branch');
return new Sami($iterator, [
'title' => 'Maintenance screen API',
'versions' => $versions,
'build_dir' => __DIR__.'/docs/%version%',
'cache_dir' => __DIR__.'/sami-cache/%version%',
'insert_todos' => true,
'remote_repository' => new GitHubRemoteRepository('ProgMiner/maintenance-screen', realpath(__DIR__))
]);