-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathdoctum.php
More file actions
24 lines (19 loc) · 665 Bytes
/
doctum.php
File metadata and controls
24 lines (19 loc) · 665 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
<?php
declare(strict_types=1);
use Doctum\Doctum;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src');
// generate documentation for the 0.4 branch
$versions = GitVersionCollection::create(__DIR__)
->add('0.4', 'Hypervel 0.4');
return new Doctum($iterator, [
'versions' => $versions,
'title' => 'Hypervel API',
'base_url' => 'https://api.hypervel.org/', // Necessary to enable the opensearch.xml file generation
'build_dir' => __DIR__ . '/doctum/build/%version%',
'cache_dir' => __DIR__ . '/doctum/cache/%version%',
]);