This commit is contained in:
Samuel Štancl 2019-09-18 09:07:34 +02:00
parent c93b11b0da
commit 87ef4776f6
7 changed files with 53 additions and 48 deletions

View file

@ -14,7 +14,7 @@ return [
},
'link' => function ($page, $path) {
return $page->baseUrl . '/' . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html');
return $page->baseUrl . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html');
},
// Algolia DocSearch credentials

View file

@ -1,7 +1,7 @@
<?php
return [
'baseUrl' => env('JIGSAW_BASE_URL') ?? 'https://tenancy.samuelstancl.me/docs',
'baseUrl' => env('JIGSAW_BASE_URL') ?? 'https://tenancy.samuelstancl.me/docs/', // must end with /
'production' => true,
'docsearchApiKey' => '53c5eaf88e819535d98f4a179c1802e1',

View file

@ -1,52 +1,57 @@
<?php
return [
'Getting Started' => [
'url' => 'getting-started',
'children' => [
'Installation' => 'installation',
'Storage Drivers' => 'storage-drivers',
'This Package vs Others' => 'difference-between-this-package-and-others',
'Configuration' => 'configuration',
'1.x' => [
'Getting Started' => [
'url' => 'getting-started',
'children' => [
'Installation' => 'installation',
'Storage Drivers' => 'storage-drivers',
'This Package vs Others' => 'difference-between-this-package-and-others',
'Configuration' => 'configuration',
],
],
],
'Usage' => [
'url' => 'usage',
'children' => [
'Creating Tenants' => 'creating-tenants',
'Tenant Routes' => 'tenant-routes',
'Tenant Storage' => 'tenant-storage',
'Tenant Manager' => 'tenant-manager',
'Console Commands' => 'console-commands',
'Usage' => [
'url' => 'usage',
'children' => [
'Creating Tenants' => 'creating-tenants',
'Tenant Routes' => 'tenant-routes',
'Tenant Storage' => 'tenant-storage',
'Tenant Manager' => 'tenant-manager',
'Console Commands' => 'console-commands',
],
],
],
'Digging Deeper' => [
'url' => 'digging-deeper',
'children' => [
'Middleware Configuration' => 'middleware-configuration',
'Custom Database Names' => 'custom-database-names',
'Filesystem Tenancy' => 'filesystem-tenancy',
'Jobs & Queues' => 'jobs-queues',
'Event System' => 'event-system',
'Tenancy Initialization' => 'tenancy-initialization',
'Application Testing' => 'application-testing',
'Writing Storage Drivers' => 'writing-storage-drivers',
'Development' => 'development',
'Digging Deeper' => [
'url' => 'digging-deeper',
'children' => [
'Middleware Configuration' => 'middleware-configuration',
'Custom Database Names' => 'custom-database-names',
'Filesystem Tenancy' => 'filesystem-tenancy',
'Jobs & Queues' => 'jobs-queues',
'Event System' => 'event-system',
'Tenancy Initialization' => 'tenancy-initialization',
'Application Testing' => 'application-testing',
'Writing Storage Drivers' => 'writing-storage-drivers',
'Development' => 'development',
],
],
],
'Integrations' => [
'url' => 'integrations',
'children' => [
'Telescope' => 'telescope',
'Horizon' => 'horizon',
'Integrations' => [
'url' => 'integrations',
'children' => [
'Telescope' => 'telescope',
'Horizon' => 'horizon',
],
],
],
'Tips' => [
'children' => [
'HTTPS Certificates' => 'https-certificates',
'Misc' => 'misc-tips',
'Tips' => [
'children' => [
'HTTPS Certificates' => 'https-certificates',
'Misc' => 'misc-tips',
],
],
'Stay Updated' => 'stay-updated',
'GitHub' => 'https://github.com/stancl/tenancy',
],
'2.x' => [
],
'Stay Updated' => 'stay-updated',
'GitHub' => 'https://github.com/stancl/tenancy',
];

View file

@ -2,7 +2,7 @@
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=getting-started/index.html">
<meta http-equiv="refresh" content="0; url=getting-started">
<title>stancl/tenancy</title>
</head>
</html>

View file

@ -2,7 +2,7 @@
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=getting-started/index.html">
<meta http-equiv="refresh" content="0; url=getting-started">
<title>stancl/tenancy</title>
</head>
</html>

View file

@ -1,7 +1,7 @@
@php $level = $level ?? 0 @endphp
<ul class="list-reset my-0">
@foreach ($items as $label => $item)
@foreach ($items[$page->version()] as $label => $item)
@include('_nav.menu-item')
@endforeach
</ul>

View file

@ -2,7 +2,7 @@
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url={{ $page->baseUrl . $page->defaultVersion }}/index.html">
<meta http-equiv="refresh" content="0; url={{ $page->baseUrl . $page->defaultVersion }}">
<title>stancl/tenancy</title>
</head>
</html>