array( 'enabled' => $debug_enabled, 'display_errors' => $debug_enabled, 'reporting' => $error_reporting_level, ), 'url' => array( 'pretty' => false, 'root' => '', 'content-type' => 'html', ), 'theme' => array( 'key' => 'docset-light', 'path' => 'themes/docset-light/', 'mode' => 'light', 'label' => 'Docset Viewer', 'footer_text' => 'Docset Viewer - local Zeal/Dash documentation browser.', 'meta_description' => 'Search and browse local Zeal docsets', 'theme_color' => '#f8fafc', 'options' => array(), ), 'site' => array( 'name' => 'Docset Viewer', 'default_page_title' => 'Search Zeal Docsets', 'include_paths' => ['views/', 'components/'], 'autostart_session' => false, 'timezone' => 'UTC', ), 'docsets' => array( 'path' => __DIR__.'/../data/docsets', 'snippet_length' => 180, 'search_limit' => 80, ), 'track' => array('changes' => array()), 'filebase' => array('path' => __DIR__.'/../tmp/'), 'menu' => array( '' => array('title' => 'Search'), 'docsets' => array('title' => 'Docsets'), ), ); if(!$GLOBALS['config']['url']['pretty'] && !$GLOBALS['config']['url']['root']) { $sroot = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : ($_SERVER['DOCUMENT_URI'] ?? ''); if(substr($sroot, -9) == 'index.php') $GLOBALS['config']['url']['root'] = substr($sroot, 0, -strlen('index.php')); } date_default_timezone_set($GLOBALS['config']['site']['timezone'] ?: 'UTC');