diff --git a/config.php b/config.php index 140ff50..08dfe4d 100644 --- a/config.php +++ b/config.php @@ -7,13 +7,14 @@ return [ 'siteDescription' => 'A Laravel multi-database tenancy package that respects your code.', 'defaultVersion' => '2.x', + 'prettyUrls' => true, 'version' => function ($page) { return explode('/', $page->getPath())[1]; }, 'link' => function ($page, $path) { - return $page->baseUrl . '/' . $page->version() . '/' . $path; + return $page->baseUrl . '/' . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html'); }, // Algolia DocSearch credentials diff --git a/navigation.php b/navigation.php index d52b8cd..380c674 100644 --- a/navigation.php +++ b/navigation.php @@ -2,51 +2,51 @@ return [ 'Getting Started' => [ - 'url' => 'docs/getting-started', + 'url' => 'getting-started', 'children' => [ - 'Installation' => 'docs/installation', - 'Storage Drivers' => 'docs/storage-drivers', - 'This Package vs Others' => 'docs/difference-between-this-package-and-others', - 'Configuration' => 'docs/configuration', + 'Installation' => 'installation', + 'Storage Drivers' => 'storage-drivers', + 'This Package vs Others' => 'difference-between-this-package-and-others', + 'Configuration' => 'configuration', ], ], 'Usage' => [ - 'url' => 'docs/usage', + 'url' => 'usage', 'children' => [ - 'Creating Tenants' => 'docs/creating-tenants', - 'Tenant Routes' => 'docs/tenant-routes', - 'Tenant Storage' => 'docs/tenant-storage', - 'Tenant Manager' => 'docs/tenant-manager', - 'Console Commands' => 'docs/console-commands', + 'Creating Tenants' => 'creating-tenants', + 'Tenant Routes' => 'tenant-routes', + 'Tenant Storage' => 'tenant-storage', + 'Tenant Manager' => 'tenant-manager', + 'Console Commands' => 'console-commands', ], ], 'Digging Deeper' => [ - 'url' => 'docs/digging-deeper', + 'url' => 'digging-deeper', 'children' => [ - 'Middleware Configuration' => 'docs/middleware-configuration', - 'Custom Database Names' => 'docs/custom-database-names', - 'Filesystem Tenancy' => 'docs/filesystem-tenancy', - 'Jobs & Queues' => 'docs/jobs-queues', - 'Event System' => 'docs/event-system', - 'Tenancy Initialization' => 'docs/tenancy-initialization', - 'Application Testing' => 'docs/application-testing', - 'Writing Storage Drivers' => 'docs/writing-storage-drivers', - 'Development' => 'docs/development', + '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' => 'docs/integrations', + 'url' => 'integrations', 'children' => [ - 'Telescope' => 'docs/telescope', - 'Horizon' => 'docs/horizon', + 'Telescope' => 'telescope', + 'Horizon' => 'horizon', ], ], 'Tips' => [ 'children' => [ - 'HTTPS Certificates' => 'docs/https-certificates', - 'Misc' => 'docs/misc-tips', + 'HTTPS Certificates' => 'https-certificates', + 'Misc' => 'misc-tips', ], ], - 'Stay Updated' => 'docs/stay-updated', + 'Stay Updated' => 'stay-updated', 'GitHub' => 'https://github.com/stancl/tenancy', ]; diff --git a/source/1.x/index.html b/source/1.x/index.html index f84794a..9aeb75e 100644 --- a/source/1.x/index.html +++ b/source/1.x/index.html @@ -2,7 +2,7 @@
- +