diff --git a/config.php b/config.php index c283eae..ceb18ff 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,8 @@ return [ 'siteName' => 'Tenancy for Laravel', 'siteDescription' => 'Automatically turn any Laravel application multi-tenant — no code changes needed. stancl/tenancy automatically switches database connections and all other things in the background, letting you leverage standard Laravel code into a full SaaS application. Most features out of all multi-tenancy packages. Single & multi-database tenancy.', - 'githubUrl' => 'https://github.com/stancl/tenancy', + 'githubUrl' => 'https://github.com/stancl/tenancy', + 'githubDocsUrl' => 'https://github.com/stancl/tenancy-docs', // key => display name 'versions' => [ @@ -27,6 +28,10 @@ return [ return $page->baseUrl . '/docs/' . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html'); }, + 'editLink' => function ($page) { + return "{$page->githubDocsUrl}/edit/master/source/{$page->getRelativePath()}/{$page->getFilename()}.{$page->getExtension()}"; + }, + // Algolia DocSearch credentials 'docsearchApiKey' => '53c5eaf88e819535d98f4a179c1802e1', 'docsearchIndexName' => 'stancl-tenancy', diff --git a/source/_layouts/documentation.blade.php b/source/_layouts/documentation.blade.php index 285600b..a251dcc 100644 --- a/source/_layouts/documentation.blade.php +++ b/source/_layouts/documentation.blade.php @@ -72,15 +72,30 @@ -