-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.doctum.php
37 lines (31 loc) · 977 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
<?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('tests')
->in($dir = __DIR__.'/src');
// $versions = GitVersionCollection::create($dir)
// ->addFromTags('18.*.*')// add tag
// ->add('master', 'master branch'); // add branch
return new Doctum($iterator);
// return new Doctum($iterator, [
// 'theme' => 'symfony',
// 'versions' => $versions,
// 'title' => 'Title API',
// 'build_dir' => __DIR__.'/build/%version%',
// 'cache_dir' => __DIR__.'/cache/%version%',
// 'remote_repository' => new GitHubRemoteRepository('username/repo', __DIR__),
// 'default_opened_level' => 2,
// ]
// );