mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 03:54:03 +00:00
wip
This commit is contained in:
parent
8b7862d8ad
commit
0832ab805b
3 changed files with 41 additions and 0 deletions
3
doctum/.gitignore
vendored
Normal file
3
doctum/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
build/
|
||||
cache/
|
||||
vendor/
|
||||
8
doctum/composer.json
Normal file
8
doctum/composer.json
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"require": {
|
||||
"code-lts/doctum": "v5.5.x-dev"
|
||||
},
|
||||
"scripts": {
|
||||
"doctum": "./vendor/bin/doctum.php update doctum.php --output-format=github --force --ignore-parse-errors --no-ansi --no-progress -v"
|
||||
}
|
||||
}
|
||||
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