From d86a17271fb4761d5cd144164c021c529cb67c98 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sat, 19 Jul 2014 01:04:18 +0200 Subject: [PATCH] Add sami configuration file. --- build/sami.conf.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 build/sami.conf.php diff --git a/build/sami.conf.php b/build/sami.conf.php new file mode 100644 index 00000000..e9bf5fc0 --- /dev/null +++ b/build/sami.conf.php @@ -0,0 +1,31 @@ +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, +));