-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
66 lines (58 loc) · 1.28 KB
/
conf.py
File metadata and controls
66 lines (58 loc) · 1.28 KB
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
61
62
63
64
65
66
import os
import re
import subprocess
import sys
from datetime import date
sys.path.append(os.path.abspath(".."))
project = "feincms3-data"
author = "Feinheit AG"
copyright = f"2021-{date.today().year}, {author}"
version = __import__("feincms3_data").__version__
release = subprocess.check_output(
"git fetch --tags; git describe", shell=True, text=True
).strip()
language = "en"
#######################################
project_slug = re.sub(r"[^a-z]+", "", project)
extensions = []
templates_path = ["_templates"]
source_suffix = ".rst"
master_doc = "index"
exclude_patterns = ["build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"
todo_include_todos = False
html_theme = "alabaster"
html_static_path = ["_static"]
htmlhelp_basename = project_slug + "doc"
latex_elements = {
"papersize": "a4",
}
latex_documents = [
(
master_doc,
project_slug + ".tex",
project + " Documentation",
author,
"manual",
)
]
man_pages = [
(
master_doc,
project_slug,
project + " Documentation",
[author],
1,
)
]
texinfo_documents = [
(
master_doc,
project_slug,
project + " Documentation",
author,
project_slug,
"", # Description
"Miscellaneous",
)
]