This commit is contained in:
Samuel Štancl 2019-09-18 08:53:39 +02:00
parent 773d66956f
commit bb4f140cca
6 changed files with 33 additions and 32 deletions

View file

@ -7,13 +7,14 @@ return [
'siteDescription' => 'A Laravel multi-database tenancy package that respects your code.',
'defaultVersion' => '2.x',
'prettyUrls' => true,
'version' => function ($page) {
return explode('/', $page->getPath())[1];
},
'link' => function ($page, $path) {
return $page->baseUrl . '/' . $page->version() . '/' . $path;
return $page->baseUrl . '/' . $page->version() . '/' . $path . ($page->prettyUrls ? '' : '.html');
},
// Algolia DocSearch credentials