mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
Add "edit" button (#67)
* Add "edit" button * Button group inside link * Change hover effect * 200 -> 100 Co-authored-by: Samuel Stancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
a94ebcd1ab
commit
7d04d0c005
2 changed files with 30 additions and 10 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