Skip to content

Commit 8793907

Browse files
committed
Update API documentation
1 parent b01a3e4 commit 8793907

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sami_config.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
->name('*.php')
1010
->in(__DIR__ . '/src');
1111

12-
return new Sami($iterator, [
13-
'title' => 'Streaming JSON Encoder',
12+
$theme = getenv('SAMI_THEME');
13+
$settings = [];
14+
15+
if ($theme) {
16+
$settings['theme'] = basename($theme);
17+
$settings['template_dirs'] = [dirname($theme)];
18+
}
19+
20+
return new Sami($iterator, $settings + [
21+
'title' => 'Streaming JSON Encoder API',
1422
'build_dir' => __DIR__ . '/build/doc',
1523
'cache_dir' => __DIR__ . '/build/cache',
1624
'remote_repository' => new GitHubRemoteRepository('violet-php/streaming-json-encoder', __DIR__),

0 commit comments

Comments
 (0)