mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/12941] Add sami.conf.php for Travis CI.
PHPBB3-12941
This commit is contained in:
@@ -45,7 +45,7 @@ $versions = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
|
|||||||
->add('develop-ascraeus')
|
->add('develop-ascraeus')
|
||||||
;
|
;
|
||||||
|
|
||||||
return new Sami\Sami($iterator, array(
|
$config = array(
|
||||||
'theme' => 'enhanced',
|
'theme' => 'enhanced',
|
||||||
'versions' => $versions,
|
'versions' => $versions,
|
||||||
'title' => 'phpBB API Documentation',
|
'title' => 'phpBB API Documentation',
|
||||||
@@ -54,4 +54,6 @@ return new Sami\Sami($iterator, array(
|
|||||||
'default_opened_level' => 2,
|
'default_opened_level' => 2,
|
||||||
// Do not use JsonStore. See https://github.com/fabpot/Sami/issues/79
|
// Do not use JsonStore. See https://github.com/fabpot/Sami/issues/79
|
||||||
'store' => new PhpbbArrayStore,
|
'store' => new PhpbbArrayStore,
|
||||||
));
|
);
|
||||||
|
|
||||||
|
return new Sami\Sami($iterator, $config);
|
||||||
|
19
travis/sami.conf.php
Normal file
19
travis/sami.conf.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* This file is part of the phpBB Forum Software package.
|
||||||
|
*
|
||||||
|
* @copyright (c) phpBB Limited <https://www.phpbb.com>
|
||||||
|
* @license GNU General Public License, version 2 (GPL-2.0)
|
||||||
|
*
|
||||||
|
* For full copyright and license information, please see
|
||||||
|
* the docs/CREDITS.txt file.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
require __DIR__ . '/../build/' . basename(__FILE__);
|
||||||
|
|
||||||
|
// Removing the versions array key will make Sami use the current branch.
|
||||||
|
unset($config['versions']);
|
||||||
|
|
||||||
|
return new Sami\Sami($iterator, $config);
|
Reference in New Issue
Block a user