5173f057adac70bfea826787aa354ccaaef82863
[yaffs-website] / vendor / drush / drush / sami-config.php
1 <?php
2
3 /**
4  * A Sami config file. See https://github.com/FriendsOfPHP/Sami.
5  */
6
7 use Sami\Sami;
8 use Sami\RemoteRepository\GitHubRemoteRepository;
9 use Sami\Version\GitVersionCollection;
10 use Symfony\Component\Finder\Finder;
11
12 $iterator = Finder::create()
13   ->files()
14   ->name('*.php')
15   //->exclude('Resources')
16   //->exclude('Tests')
17   ->in($dir = __DIR__.'/src')
18 ;
19
20 // generate documentation for all v2.0.* tags, the 2.0 branch, and the master one
21 $versions = GitVersionCollection::create($dir)
22   // ->addFromTags('8.*')
23  //  ->add('8.x', '8.x branch')
24   ->add('master', 'Master branch')
25 ;
26
27 return new Sami($iterator, array(
28   // 'theme'                => 'symfony',
29   'versions'             => $versions,
30   'title'                => 'Drush API',
31   'build_dir'            => __DIR__.'/api/%version%',
32   'cache_dir'            => __DIR__.'/.sami-cache/%version%',
33   'remote_repository'    => new GitHubRemoteRepository('drush-ops/drush', dirname($dir)),
34   'default_opened_level' => 2,
35 ));