-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
doctum-config.php
42 lines (36 loc) · 1.28 KB
/
doctum-config.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
40
41
42
<?php
/**
* A Doctum config file. See https://github.com/code-lts/doctum#readme.
*/
use Doctum\Doctum;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$dir = __DIR__.'/src';
$iterator = Finder::create()
->files()
->name('*.php')
//->exclude('Resources')
//->exclude('tests')
->in([
$dir,
__DIR__ . '/vendor/consolidation/annotated-command/src',
__DIR__ . '/vendor/consolidation/output-formatters/src',
__DIR__ . '/vendor/consolidation/robo/src',
__DIR__ . '/vendor/consolidation/site-alias/src',
])
;
// Generate documentation for the main branch only
//$versions = GitVersionCollection::create($dir)
//// ->addFromTags('10.*') // Also generate documentation for 10.x semver releases
// ->add('11.x', 'Main branch');
return new Doctum($iterator, [
// 'theme' => 'symfony',
// 'versions' => $versions,
'title' => 'Drush API 13',
'build_dir' => __DIR__.'/gh-pages/api',
//'build_dir' => __DIR__.'/gh-pages/api/%version%',
'cache_dir' => __DIR__.'/.doctum-cache/%version%',
'remote_repository' => new GitHubRemoteRepository('drush-ops/drush', dirname($dir)),
'default_opened_level' => 2,
]);