-
Notifications
You must be signed in to change notification settings - Fork 1
/
server_config.py
52 lines (45 loc) · 1.06 KB
/
server_config.py
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
50
51
52
import os.path as path
ROOT = path.join("/Users", "amoogle", "Documents", "Git", "wiki-server")
FILEPATH_HTML_HOME = path.join(ROOT, 'README.md')
HTML = path.join(ROOT, 'server_templates')
FILEPATH_HTML_SCHEME = path.join(HTML, 'scheme.html')
FILEPATH_HTML_DEBUG = path.join(HTML, 'page_debug.html')
FILEPATH_SEARCH_RESULTS = path.join(HTML, "tmp_search_results.txt")
FILE_EDITOR_COMMAND = "atom"
HOST = "127.0.0.1" # Note: currently hardcoded in the html_scheme file
PORT = "8080" # Note: currently hardcoded in the html_scheme file
SEARCH_FILEPATH_LEGAL_EXTENSIONS = [
'txt',
'md',
'rtf',
'py',
'csv',
'json',
'tex',
]
WORD_FINDER_IGNORE_EXTENSIONS = [
".html",
".gif",
".png",
".jpg",
".pyc",
".git",
".idx",
".pack",
".sample",
".DS_Store",
]
WORD_FINDER_IGNORE_DIRS = [
".git",
]
COLORS = dict(
light_blue="#eef2ff",
light_blue_darker="#d6daf0",
dark_blue="#1e1c68",
grey_blue="#3f3f66",
green="#177a49",
red="#dc2629",
pink="#d6bad0",
gray="#D1D5EE",
black="#000000"
)