sami.php 517 B

1234567891011121314151617181920
  1. <?php
  2. use Sami\Sami;
  3. use Sami\Version\GitVersionCollection;
  4. $dir = __DIR__.'/src';
  5. $versions = GitVersionCollection::create($dir)
  6. ->addFromTags('v0.*')
  7. ->add('master', 'master branch')
  8. ;
  9. return new Sami($dir, array(
  10. 'title' => 'Slugify API',
  11. 'theme' => 'enhanced',
  12. 'versions' => $versions,
  13. 'build_dir' => __DIR__.'/build/api/%version%',
  14. 'cache_dir' => __DIR__.'/cache/api/%version%',
  15. 'default_opened_level' => 2,
  16. ));