This repository has been archived by the owner on Apr 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.py.dist
60 lines (47 loc) · 2.12 KB
/
conf.py.dist
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
53
54
55
56
57
58
59
60
import collections
MEI_GIT_SOURCE_DIR = "/path/to/music-encoding"
# Absolute path to a temporary holding spot for built schemas. This will be cleared every
# day of schemas that are older than 24h.
BUILT_SCHEMA_DIR = "/path/to/customeization/build"
# A secret (random) key for CSRF security. Can be anything.
SECRET_KEY = "putsomethinghere"
# Absolute path to the TEIC Stylesheets code
PATH_TO_TEI_STYLESHEETS = "/path/to/Stylesheets"
PATH_TO_GIT_BINARY = "/usr/bin/git"
# Optional
PATH_TO_SAXON_JAR = ""
PATH_TO_TRANG_JAR = ""
PATH_TO_JING = ""
PATH_TO_XMLLINT = "/usr/bin/xmllint"
RELEASES = (
("Latest Stable", "master"),
("Latest Development", "develop"),
("2013 v2.1.1", "b9dff53ad25203cfe43fa6b68eab6fad6d2a088e"),
("2012 v2.0.0", "1233176080667060f375ed11ce92d4994fd9326c")
)
# Do not customize these paths.
MEI_DRIVER_FILE = "source/driver.xml"
TEI_TO_RELAXNG_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitorelaxng"
TEI_TO_COMPILEDODD_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitoodd"
TEI_TO_DOCUMENTATION_BIN = PATH_TO_TEI_STYLESHEETS + "/bin/teitohtml"
MEI_ALL_FILE = "customizations/mei-all.xml"
MEI_NEUMES_FILE = "customizations/mei-Neumes.xml"
MEI_MENSURAL_FILE = "customizations/mei-Mensural.xml"
MEI_CMN_FILE = "customizations/mei-CMN.xml"
# Customizations
# The Dictionary key is a unique identifier
# The tuple is ("Human Readable Name", /customization/file.xml)
AVAILABLE_CUSTOMIZATIONS = (
('mei-all', ("MEI All", MEI_ALL_FILE)),
('mei-neumes', ("MEI Neumes (2013+)", MEI_NEUMES_FILE)),
("mei-mensural", ("MEI Mensural (2013+)", MEI_MENSURAL_FILE)),
("mei-cmn", ("MEI CMN (2013+)", MEI_CMN_FILE)),
("z-local-customization", ("Local Customization File", None)) # This should always sort last.
)
# Period (in hours) to clean up the build directory
BUILD_EXPIRY = 24
# only applicable if you're running a GH hook. This must match the remote secret.
GITHUB_SECRET_KEY=""
# pay no attention to the man behind the curtain... This just ensures these options are presented in the right order
RELEASES = collections.OrderedDict(RELEASES)
AVAILABLE_CUSTOMIZATIONS = collections.OrderedDict(AVAILABLE_CUSTOMIZATIONS)