Feature: Add Markdown parsing
[phorkie.git] / data / config.default.php
1 <?php
2 $GLOBALS['phorkie']['cfg'] = array(
3     'debug'         => false,
4     'gitdir'        => __DIR__ . '/../repos/git/',
5     'workdir'       => __DIR__ . '/../repos/work/',
6     'tpl'           => __DIR__ . '/templates/',
7     'css'           => 'http://twitter.github.com/bootstrap/assets/css/bootstrap.css',
8     'title'         => 'phorkie',
9     'topbar'        => '',
10     'setupcheck'    => true,
11     'elasticsearch' => null,
12     'geshi'         => 'MediaWiki/geshi/geshi/geshi.php',
13     'index'         => 'new'//"new" or "list"
14 );
15 $GLOBALS['phorkie']['tools'] = array(
16     '\\phorkie\\Tool_Xmllint' => true,
17     '\\phorkie\\Tool_PHPlint' => true,
18 );
19 /**
20  * Array of supported file types / languages.
21  * Key is the file extension
22  */
23 $GLOBALS['phorkie']['languages'] = array(
24     'css' => array(
25         'title' => 'CSS',
26         'mime'  => 'text/css',
27         'geshi' => 'css'
28     ),
29     'diff' => array(
30         'title' => 'Diff',
31         'mime'  => 'text/diff',
32         'geshi' => 'diff'
33     ),
34     'htm' => array(
35         'title' => 'HTML',
36         'mime'  => 'text/html',
37         'geshi' => 'xml'
38     ),
39     'html' => array(
40         'title' => 'HTML',
41         'mime'  => 'text/html',
42         'geshi' => 'xml',
43         'show'  => false
44     ),
45     'jpg' => array(
46         'title' => 'JPEG image',
47         'mime'  => 'image/jpeg',
48         'show'  => false
49     ),
50     'ini' => array(
51         'title' => 'Ini',
52         'mime'  => 'text/ini',
53         'geshi' => 'ini'
54     ),
55     'js' => array(
56         'title' => 'Javascript',
57         'mime'  => 'application/javascript',
58         'geshi' => 'javascript'
59     ),
60     'md' => array(
61         'title' => 'Markdown',
62         'mime'  => 'text/x-markdown',
63         'renderer' => '\\phorkie\\Renderer_Markdown'
64     ),
65     'pl' => array(
66         'title' => 'Perl',
67         'mime'  => 'application/x-perl',
68         'geshi' => 'pl'
69     ),
70     'php' => array(
71         'title' => 'PHP',
72         'mime'  => 'text/x-php',
73         'geshi' => 'php'
74     ),
75     'png' => array(
76         'title' => 'PNG image',
77         'mime'  => 'image/png',
78         'show'  => false
79     ),
80     'rb' => array(
81         'title' => 'Ruby/Rails',
82         'mime'  => 'text/x-ruby', /* Is this an acceptable mime type? */
83         'geshi' => 'rails'
84     ),
85     'rst' => array(
86         'title' => 'reStructuredText',
87         'mime'  => 'text/x-rst',
88         'geshi' => 'rst',
89         'renderer' => '\\phorkie\\Renderer_ReStructuredText',
90     ),
91     'sh' => array(
92         'title' => 'Shell script (Bash)',
93         'mime'  => 'text/x-shellscript',
94         'geshi' => 'bash'
95     ),
96     'sql' => array(
97         'title' => 'SQL',
98         'mime'  => 'text/x-sql',
99         'geshi' => 'sql'
100     ),
101     'svg' => array(
102         'title' => 'SVG image',
103         'mime'  => 'image/svg+xml',
104         'show'  => false
105     ),
106     'txt' => array(
107         'title' => 'Text (plain)',
108         'mime'  => 'text/plain',
109         'geshi' => 'txt'
110     ),
111     'ts' => array(
112         'title' => 'TypoScript',
113         'mime'  => 'text/x-typoscript',/* TODO: correct type */
114         'geshi' => 'typoscript'
115     ),
116     'xml' => array(
117         'title' => 'XML',
118         'mime'  => 'text/xml',
119         'geshi' => 'xml'
120     ),
121 );
122 ?>