mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 18:24:03 +00:00
Add "edit" button
This commit is contained in:
parent
a94ebcd1ab
commit
e5a05caec5
2 changed files with 28 additions and 9 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue