[ticket/12941] Add sami.conf.php for Travis CI.

PHPBB3-12941
This commit is contained in:
Andreas Fischer 2014-08-09 14:54:15 +02:00
parent 56ca276dcf
commit 4f131c2248
2 changed files with 23 additions and 2 deletions

View file

@ -45,7 +45,7 @@ $versions = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')
->add('develop-ascraeus')
;
return new Sami\Sami($iterator, array(
$config = array(
'theme' => 'enhanced',
'versions' => $versions,
'title' => 'phpBB API Documentation',
@ -54,4 +54,6 @@ return new Sami\Sami($iterator, array(
'default_opened_level' => 2,
// Do not use JsonStore. See https://github.com/fabpot/Sami/issues/79
'store' => new PhpbbArrayStore,
));
);
return new Sami\Sami($iterator, $config);

19
travis/sami.conf.php Normal file
View 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);