-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.py
38 lines (32 loc) · 1021 Bytes
/
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
import os
import re
# Import various utilities from utils
# import templar.utils.html
# import templar.utils.filters
# Path of the current file -- best not to change this
FILEPATH = os.path.dirname(os.path.abspath(__file__))
##################
# Configurations #
##################
configurations = {
# List of directories in which to search for templates
'TEMPLATE_DIRS': [
FILEPATH,
# Add directories that contain templates
# os.path.join(FILEPATH, 'example'),
],
# Variables that can be used in templates
'VARIABLES': {
# Add variables here, like the following
# 'example': 'something here',
},
# Substitutions for the linker
'SUBSTITUTIONS': [
# Add substitutions of the form
# (regex, sub_function),
# (regex, sub_function, condition),
],
# Use the following to scrape "headers"
# TOC_BUILDER should be a subclass of templar.utils.core.TocBuilder
# 'TOC_BUILDER': templar.utils.htmlHeaderParser,
}