-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
46 lines (31 loc) · 1.02 KB
/
config.js
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
/**
* $File: config.js $
* $Date: 2018-09-27 17:11:04 $
* $Revision: $
* $Creator: Jen-Chieh Shen $
* $Notice: See LICENSE.txt for modification and distribution information
* Copyright © 2018 by Shen, Jen-Chieh $
*/
"use strict";
const DEBUG = false; // Debug mode?
const HOST = "localhost"; // Host [Default: localhost]
const PORT = 4000; // Server Port [Default: 4000]
const WEBSITE_DIR = "website";
/* Paths */
const BLOG_DIR_PATH = "./website/Blog/doc/";
/* Action */
const SORT_ORDER = 'directory';
// Content extension to load.
//
// NOTE: have to be the same with 'client' side's config file.
//
// SEE : ./website/js/config.js
const CONTENT_EXTENSION = /\.md/;
//------------------ Exports modules ------------------//
module.exports.DEBUG = DEBUG;
module.exports.HOST = HOST;
module.exports.PORT = PORT;
module.exports.WEBSITE_DIR = WEBSITE_DIR;
module.exports.BLOG_DIR_PATH = BLOG_DIR_PATH;
module.exports.SORT_ORDER = SORT_ORDER;
module.exports.CONTENT_EXTENSION = CONTENT_EXTENSION;