-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathdoctum-config.php
More file actions
28 lines (22 loc) · 715 Bytes
/
doctum-config.php
File metadata and controls
28 lines (22 loc) · 715 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
<?php
use Doctum\Doctum;
use Doctum\Version\GitVersionCollection;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Symfony\Component\Finder\Finder;
$root = realpath(__DIR__);
$iterator = Finder::create()
->files()
->name('*.stub.php')
->in($root);
//$versions = GitVersionCollection::create($root)
// ->add('develop', 'develop');
return new Doctum($iterator, [
'title' => 'PhpRedis API',
'language' => 'en',
'source_dir' => $root,
'build_dir' => "{$root}/docs",
'cache_dir' => "{$root}/docs/.cache",
'base_url' => 'https://phpredis.github.io/',
// 'versions' => $versions,
'remote_repository' => new GitHubRemoteRepository('phpredis/phpredis', $root),
]);