1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/guanguans-coole

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Клонировать/Скачать
doctum.php 1.3 КБ
Копировать Редактировать Web IDE Исходные данные Просмотреть построчно История
yaozm Отправлено 22.09.2022 10:44 6a511d5
<?php
declare(strict_types=1);
/**
* This file is part of Coole.
*
* @link https://github.com/guanguans/coole
* @contact guanguans <ityaozm@gmail.com>
* @license https://github.com/guanguans/coole/blob/main/LICENSE
*/
use Doctum\Doctum;
use Doctum\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$iterator = Finder::create()
->files()
->name('*.php')
->exclude('tests')
->in($dir = __DIR__.'/src/');
$versions = GitVersionCollection::create($dir)
// ->addFromTags('v1.*')
->add('1.x', '1.x branch')
->add('main', 'main branch');
return new Doctum(
$iterator,
[
'theme' => 'default',
'versions' => $versions,
'title' => 'Coole API',
'favicon' => 'https://www.guanguans.cn/coole/static/favicon.png',
'build_dir' => __DIR__.'/docs/api/%version%',
// 'build_dir' => __DIR__.'/docs/api/',
'cache_dir' => __DIR__.'/build/doctum/api/%version%',
'default_opened_level' => 2,
'footer_link' => [
'href' => 'https://github.com/guanguans/coole',
'rel' => 'noreferrer noopener',
'target' => '_blank',
'before_text' => 'You can edit the configuration',
'link_text' => 'on this', // Required if the href key is set
'after_text' => 'repository.',
],
]
);

Опубликовать ( 0 )

Вы можете оставить комментарий после Вход в систему

1
https://api.gitlife.ru/oschina-mirror/guanguans-coole.git
git@api.gitlife.ru:oschina-mirror/guanguans-coole.git
oschina-mirror
guanguans-coole
guanguans-coole
main