-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.sample.php
42 lines (40 loc) · 1.87 KB
/
config.sample.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/** ================================
* @package Preambula
* @author 4X_Pro <me@4xpro.ru>
* @version 0.90b
* @copyright 2024, 4X_Pro
* @url https://preambula.4xpro.ru
*
* Sample config file for Preambula Markdown Processor
* ================================ */
// Copy this file to config.php and change according your needs
$preambula_settings = array(
// Directory where Markdown files stored. Can be absolute path or relative to directory where _handler.php is placed (i.e. public_html)
'data_dir'=>'.',
// File to display if directory address is requested. Should match DirectoryIndex directive in web server configuration. Multiple index names are not supported for now
'index_file'=>'index.md',
// The URL of Preambula data directory. This part will be removed from requesting URL when looking for requested file.
'base_url'=>'/',
// Maximum length of automatically generated description
'description_legth'=>240,
// Debug mode enables display_errors to browser, disables cache and ouputs page generation time and memory consumption to {{ debug }} clause in template
'debug'=>false,
// Disables cache and HTTP status 304 output
'nocache'=>false,
// Value of Cache-Control header (only if nocache is false)
'cache_control'=>'public, max-age=1400',
// Default values each page to use if no such value specified in FrontMatter of requested page
'defaults'=>array(
// lang is used in "lang" attribute <html> tag
'lang'=>'en',
// default site encoding (character set)
'charset'=>'utf-8',
// default template to wrap Markdown code
'template'=>'default.html'
),
// Should be OpenGraph metatags generated automatically.
'opengraph_auto'=>false,
// If enabled, class \cebe\markdown\GithubMarkdown will be used for parsing instead of \cebe\markdown\Markdown
'github_mode'=>false
);