forked from Alorel/dropbox-v2-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsami.php
More file actions
23 lines (18 loc) · 841 Bytes
/
sami.php
File metadata and controls
23 lines (18 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
$src = __DIR__ . DIRECTORY_SEPARATOR . 'src';
$out = __DIR__ . DIRECTORY_SEPARATOR . 'docs' . DIRECTORY_SEPARATOR . '%version%';
$cache = __DIR__ . DIRECTORY_SEPARATOR . '.sami-cache' . DIRECTORY_SEPARATOR . '%version%';
$iterator = Symfony\Component\Finder\Finder::create()
->files()
->name('*.php')
->exclude('build')
->exclude('tests')
->in($src);
$options = [
'theme' => 'default',
'title' => 'Dropbox v2 PHP SDK',
'build_dir' => $out,
'cache_dir' => $cache,
];
$sami = new Sami\Sami($iterator, $options);
return $sami;