-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.php
50 lines (41 loc) · 2.07 KB
/
config.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
$highlighter = new \Tempest\Highlight\Highlighter;
return [
'production' => false,
'baseUrl' => '',
'title' => 'Turbo Laravel',
'description' => 'Build web and hybrid navite apps with Laravel and Hotwire today.',
'github_url' => 'https://github.com/hotwired-laravel/turbo-laravel',
'hotwire_site_url' => 'https://hotwired.dev/',
'tony_site_url' => 'https://tonysm.com',
'current_version' => '2.2.0',
'latest_v1' => '1.12.2',
'current_docs_index' => '/docs/installation',
'v1_docs_index' => '/1.x/docs/installation',
'bootcamp_index' => '/bootcamp/introduction',
'collections' => [
'docs' => ['path' => 'docs/{filename}', 'sort' => 'order', 'searchable' => fn ($page) => $page->search ?? true],
'v1' => ['path' => '1.x/docs/{filename}', 'sort' => 'order', 'searchable' => fn ($page) => $page->search ?? true],
'bootcamp' => ['path' => 'bootcamp/{filename}', 'sort' => 'order', 'searchable' => fn ($page) => $page->search ?? true],
],
'navigation' => [
'v1' => require ('v1-navigation.php'),
'v2' => require ('navigation.php'),
'bootcamp' => require ('bootcamp.php'),
],
'selected' => fn ($page, $section) => str_contains($page->getPath(), $section),
'snippets' => [
'frames' => <<<HTML
<pre class="overflow-x-auto"><code class="language-php">{$highlighter->parse(file_get_contents(__DIR__ . '/source/_snippets/frames.txt'), 'blade')}</code></pre>
HTML,
'streams' => <<<HTML
<pre class="overflow-x-auto"><code class="language-php">{$highlighter->parse(file_get_contents(__DIR__ . '/source/_snippets/streams.txt'), 'php')}</code></pre>
HTML,
'native' => <<<HTML
<pre class="overflow-x-auto"><code class="language-php">{$highlighter->parse(file_get_contents(__DIR__ . '/source/_snippets/native.txt'), 'php')}</code></pre>
HTML,
'tests' => <<<HTML
<pre class="overflow-x-auto"><code class="language-php">{$highlighter->parse(file_get_contents(__DIR__ . '/source/_snippets/tests.txt'), 'php')}</code></pre>
HTML,
],
];