1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

Add sami configuration file.

This commit is contained in:
Andreas Fischer 2014-07-19 01:04:18 +02:00
parent 3c9614991a
commit d86a17271f

31
build/sami.conf.php Normal file
View File

@ -0,0 +1,31 @@
<?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('master')
->add('php5')
;
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,
));