コード例 #1
0
ファイル: sami.conf.php プロジェクト: EarthTeam/earthteam.net
<?php

// Prevent e.g. 'Notice: Constant MATH_BIGINTEGER_MONTGOMERY already defined'.
class MyArrayStore extends Sami\Store\ArrayStore
{
    public function removeClass(Sami\Project $project, $name)
    {
        unset($this->classes[$name]);
    }
}
$iterator = Symfony\Component\Finder\Finder::create()->files()->name('*.php')->in(__DIR__ . '/../phpseclib/');
$versions = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')->add('1.0')->add('2.0')->add('master');
return new Sami\Sami($iterator, array('theme' => 'enhanced', 'versions' => $versions, 'title' => 'phpseclib API Documentation', 'build_dir' => __DIR__ . '/api/output/%version%', 'cache_dir' => __DIR__ . '/api/cache/%version%', 'default_opened_level' => 2, 'store' => new MyArrayStore()));
コード例 #2
0
ファイル: sami-all.conf.php プロジェクト: MrAdder/phpbb
<?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__ . '/sami-checkout.conf.php';
$config['versions'] = Sami\Version\GitVersionCollection::create(__DIR__ . '/../')->add('3.0.x')->add('3.1.x')->add('master');
return new Sami\Sami($iterator, $config);