mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 00:14:04 +00:00
wip
This commit is contained in:
parent
8b7862d8ad
commit
0832ab805b
3 changed files with 41 additions and 0 deletions
30
doctum/doctum.php
Normal file
30
doctum/doctum.php
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
|
||||
require __DIR__.'/vendor/autoload.php';
|
||||
|
||||
use Doctum\Doctum;
|
||||
use Symfony\Component\Finder\Finder;
|
||||
use Doctum\Version\GitVersionCollection;
|
||||
use Doctum\RemoteRepository\GitHubRemoteRepository;
|
||||
|
||||
$iterator = Finder::create()
|
||||
->files()
|
||||
->name('*.php')
|
||||
->in($dir = __DIR__ . '/../src');
|
||||
|
||||
$versions = GitVersionCollection::create($dir)
|
||||
->add('1.x', 'Tenancy 1.x')
|
||||
->add('2.x', 'Tenancy 2.x')
|
||||
->add('3.x', 'Tenancy 3.x')
|
||||
->add('master', 'Tenancy Dev');
|
||||
|
||||
return new Doctum($iterator, [
|
||||
'title' => 'Tenancy for Laravel API Documentation',
|
||||
'versions' => $versions,
|
||||
'build_dir' => __DIR__ . '/build/%version%',
|
||||
'cache_dir' => __DIR__ . '/cache/%version%',
|
||||
'default_opened_level' => 2,
|
||||
'base_url' => 'https://api.tenancyforlaravel.com/',
|
||||
'favicon' => 'https://tenancyforlaravel.com/favicon.ico',
|
||||
'remote_repository' => new GitHubRemoteRepository('archtechx/tenancy', dirname($dir)),
|
||||
]);
|
||||
Loading…
Add table
Add a link
Reference in a new issue