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:
Ostap B 2020-08-05 00:17:20 +03:00 committed by GitHub
parent a94ebcd1ab
commit 7d04d0c005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 10 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',