Skip to content

Commit fb29978

Browse files
committed
Add a config for phpunit
1 parent 2a501c4 commit fb29978

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
use Doctum\Doctum;
4+
use Doctum\RemoteRepository\GitHubRemoteRepository;
5+
use Symfony\Component\Finder\Finder;
6+
7+
$rootDir = __DIR__ . '/';
8+
$sourceRootDir = $rootDir . 'sources/phpunit';
9+
10+
$iterator = Finder::create()
11+
->files()
12+
->name('*.php')
13+
->path('src')
14+
->in($sourceRootDir);
15+
16+
return new Doctum($iterator, [
17+
'title' => 'PHPUnit',
18+
'build_dir' => $rootDir . '/phpunit',
19+
'cache_dir' => $rootDir . '/cache',
20+
'source_dir' => $rootDir,
21+
'version' => 'main',// For remote links to work
22+
'remote_repository' => new GitHubRemoteRepository('sebastianbergmann/phpunit', $sourceRootDir),
23+
'footer_link' => [
24+
'href' => 'https://phpunit.de/documentation.html',
25+
'rel' => 'noreferrer noopener',
26+
'target' => '_blank',
27+
'before_text' => 'This documentation is built for the',
28+
'link_text' => 'PHPUnit',
29+
'after_text' => 'project.',
30+
],
31+
]);

0 commit comments

Comments
 (0)