<?php use Illuminate\Support\Str; return [ 'baseUrl' => 'https://telegram-bot-sdk.netlify.app', 'production' => false, 'siteName' => 'Telegram Bot SDK 4.0', 'siteDescription' => 'Create beautiful Telegram Bots with PHP', // Algolia DocSearch credentials 'docsearchApiKey' => '', 'docsearchIndexName' => '', // navigation menu 'navigation' => require_once('navigation.php'), // helpers 'isActive' => function ($page, $path) { return Str::endsWith(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 Str::startsWith($path, 'http') ? $path : '/' . trimPath($path); }, ];