-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.doctum.php
39 lines (33 loc) · 1010 Bytes
/
.doctum.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
35
36
37
38
39
<?php
/**
* @see https://github.com/code-lts/doctum
*
* $ doctum update .doctum.php
* $ cd build ; php -S 0.0.0.0:8080
*
*/
use Doctum\Doctum;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()
->files()
->name('*.php')
// ->exclude('docs')
->in(__DIR__.'/src')
->in(__DIR__.'/app');
// $versions = GitVersionCollection::create($dir)
// ->addFromTags('18.*.*')// add tag
// ->add('master', 'master branch'); // add branch
return new Doctum($iterator,[
'build_dir' => __DIR__.'/build/doctum',
'cache_dir' => __DIR__.'/cache/doctum',
]);
// return new Doctum($iterator, [
// 'versions' => $versions,
// 'title' => 'Title API',
// 'build_dir' => __DIR__.'/build/%version%',
// 'cache_dir' => __DIR__.'/cache/%version%',
// 'remote_repository' => new GitHubRemoteRepository('username/repo', __DIR__),
// ]
// );