1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-13 20:32:11 +02:00

[ticket/16587] Restore the Doctum config script and document the process

PHPBB3-16587
This commit is contained in:
William Desportes 2020-09-08 11:08:35 +02:00
parent 7f29daf0d4
commit 3be5ab3a5c
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -21,9 +21,11 @@ $iterator = Symfony\Component\Finder\Finder::create()
->notPath('#^vendor/#')
->notPath('data');
return new Doctum\Doctum($iterator, [
// This variable will be used and changed in doctum-all.conf.php
$config = [
'title' => 'phpBB API Documentation',
'build_dir' => __DIR__ . '/api/output/%version%',
'cache_dir' => __DIR__ . '/api/cache/%version%',
'default_opened_level' => 2,
]);
];
return new Doctum\Doctum($iterator, $config);