-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoctum.php
More file actions
49 lines (40 loc) · 1.17 KB
/
Copy pathdoctum.php
File metadata and controls
49 lines (40 loc) · 1.17 KB
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
43
44
45
46
47
48
49
<?php
declare(strict_types=1);
use Doctum\Doctum;
use Doctum\RemoteRepository\GitHubRemoteRepository;
use Symfony\Component\Finder\Finder;
$root = __DIR__;
$iterator = Finder::create()
->files()
->name('*.php')
->in($root . '/src');
$remoteRepository = new class(
'johnnyxlemonade/framework',
$root,
) extends GitHubRemoteRepository {
public function getFileUrl($projectVersion, $relativePath, $line)
{
return parent::getFileUrl('master', $relativePath, $line);
}
};
return new Doctum($iterator, [
'title' => 'Lemonade Framework API',
'language' => 'en',
'build_dir' => $root . '/build/docs',
'cache_dir' => $root . '/build/doctum-cache',
'source_dir' => $root,
'template_dirs' => [
$root . '/doctum-theme',
],
'remote_repository' => $remoteRepository,
'theme' => 'lemonade-modern-local',
'default_opened_level' => 2,
'footer_link' => [
'href' => 'https://github.com/johnnyxlemonade/framework',
'rel' => 'noreferrer noopener',
'target' => '_blank',
'before_text' => 'Source code available',
'link_text' => 'on GitHub',
'after_text' => '',
],
]);