mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 09:34:05 +00:00
30 lines
964 B
PHP
30 lines
964 B
PHP
<?php
|
|
|
|
return [
|
|
'baseUrl' => '',
|
|
'production' => false,
|
|
'siteName' => 'stancl/tenancy documentation',
|
|
'siteDescription' => 'A Laravel multi-database tenanyc package that respects your code.',
|
|
|
|
// Algolia DocSearch credentials
|
|
'docsearchApiKey' => '',
|
|
'docsearchIndexName' => '',
|
|
|
|
// navigation menu
|
|
'navigation' => require_once('navigation.php'),
|
|
|
|
// helpers
|
|
'isActive' => function ($page, $path) {
|
|
return ends_with(trimPath($page->getPath()), trimPath($path));
|
|
},
|
|
'isActiveParent' => function ($page, $menuItem) {
|
|
if (is_object($menuItem) && $menuItem->children) {
|
|
return $menuItem->children->contains(function ($child) use ($page) {
|
|
return trimPath($page->getPath()) == trimPath($child);
|
|
});
|
|
}
|
|
},
|
|
'url' => function ($page, $path) {
|
|
return starts_with($path, 'http') ? $path : '/'.trimPath($path);
|
|
},
|
|
];
|