forked from contentful/contentful-laravel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
sami.php
32 lines (26 loc) · 735 Bytes
/
sami.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
// This is the API docs generator configuration.
// To generate docs, execute:
// php sami.phar update sami.php
//
// For more about Sami, visit
// https://github.com/FriendsOfPHP/Sami
use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;
$dir = __DIR__ . '/src';
$iterator = Finder::create()
->files()
->name('*.php')
->in($dir)
;
$versions = GitVersionCollection::create($dir)
->addFromTags('*')
->add('master', 'Master branch')
;
return new Sami($iterator, [
'title' => 'Contentful Laravel Integration',
'versions' => $versions,
'build_dir' => __DIR__ . '/build/docs/api/%version%',
'cache_dir' => __DIR__ . '/build/doc_cache/%version%',
]);