We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b01a3e4 commit 8793907Copy full SHA for 8793907
sami_config.php
@@ -9,8 +9,16 @@
9
->name('*.php')
10
->in(__DIR__ . '/src');
11
12
-return new Sami($iterator, [
13
- 'title' => 'Streaming JSON Encoder',
+$theme = getenv('SAMI_THEME');
+$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',
22
'build_dir' => __DIR__ . '/build/doc',
23
'cache_dir' => __DIR__ . '/build/cache',
24
'remote_repository' => new GitHubRemoteRepository('violet-php/streaming-json-encoder', __DIR__),
0 commit comments