-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.php
49 lines (37 loc) · 1.57 KB
/
config.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
43
44
45
46
47
48
49
<?php
// Doodad Configuration
// Available variables:
// $docrootDir - the Apache DocumentRoot file directory
// $scriptDir - the file directory containing the doodad.php script.
// $scriptURL - the URL of the directory containing the doodad.php script.
// $iphone - logical if the browser is an iPhone.
// $ipad - logical if the browser is an iPad.
// PHP Markdown script location
// Could also use PHP Markdown Extra or PHP Markdown Extra Math
// Path relative to this config.php file or absolute file path
require '../PhpMarkdownExtra/markdown.php';
// The web path to the document tree root
$homeWeb = $scriptURL . '/test';
// The file path for the root of your document tree being served by this handler
$home = $docroot . $homeWeb; // $docroot is the Apache doument DocumentRoot
// Main CSS file (URL relative to script folder or starting with / from web root)
$cssURL = $scriptURL . '/css/main.css';
// Math support
$enableMath = false; // true or false
// MathJax script for math support. Must use PHP Markdown Extra Math (https://github.com/drdrang/php-markdown-extra-math).
$mathjaxScript = 'https://d3eoax9i5htok0.cloudfront.net/mathjax/latest/MathJax.js?config=TeX-MML-AM_HTMLorMML'; // Use the MathJax site
$mathjaxConfig = $scriptDir . '/html/mathjaxConfig.html'; // Filename of custom MathJax configuration.
// You could create separate templates for iPhone and iPad if you wanted
if ($iphone)
{
$templateHTML = './template.php';
}
elseif ($ipad)
{
$templateHTML = './template.php';
}
else
{
$templateHTML = './template.php';
}
?>