forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doctum-config.php
36 lines (30 loc) · 1.04 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
<?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)
;
// Generate documentation for the main branch only
$versions = GitVersionCollection::create($dir)
// ->addFromTags('10.*') // Also generate documentation for 10.x semver releases
->add('10.x', 'Main branch');
return new Doctum($iterator, [
// 'theme' => 'symfony',
'versions' => $versions,
'title' => 'Drush API',
// 'build_dir' => __DIR__.'/gh-pages/api/%version%',
'build_dir' => __DIR__.'/gh-pages/latest/api',
'cache_dir' => __DIR__.'/.doctum-cache/%version%',
'remote_repository' => new GitHubRemoteRepository('drush-ops/drush', dirname($dir)),
'default_opened_level' => 2,
]);