Add "edit" button

This commit is contained in:
Ostap 2020-08-04 23:30:17 +03:00
parent a94ebcd1ab
commit e5a05caec5
2 changed files with 28 additions and 9 deletions

View file

@ -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',