forked from nuclear-multimessenger-astronomy/nmma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
123 lines (80 loc) · 1.93 KB
/
conf.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import sys
import os
sys.path.insert(0, os.path.abspath(".."))
import nmma
extensions = ["myst_parser", "sphinx_copybutton","sphinx_github_changelog"]
myst_enable_extensions = [
"amsmath",
"colon_fence",
"deflist",
"dollarmath",
"fieldlist",
"html_admonition",
"html_image",
"linkify",
"replacements",
"smartquotes",
"strikethrough",
"substitution",
"tasklist",
]
mathjax_config = {
"tex2jax": {
"inlineMath": [["\\(", "\\)"]],
"displayMath": [["\\[", "\\]"]],
},
}
sphinx_github_changelog_token = os.getenv("SPHINX_GITHUB_CHANGELOG_TOKEN")
templates_path = ["_templates"]
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
html_theme_options = {
"path_to_docs": "doc",
"repository_url": "https://github.com/nuclear-multimessenger-astronomy/nmma",
"repository_branch": "main",
"use_edit_page_button": True,
"use_issues_button": True,
"use_repository_button": True,
"use_download_button": True,
}
master_doc = "index"
project = "nmma"
copyright = "2023, The NMMA Team"
author = "The NMMA Team"
version = nmma.__version__
release = version
language = None
exclude_patterns = ["_build"]
todo_include_todos = False
html_theme = "sphinx_book_theme"
html_favicon = "_static/favicon-light.png"
html_static_path = ["_static"]
html_logo = "_static/light-logo.svg"
html_show_sourcelink = False
htmlhelp_basename = "nmmadoc"
latex_elements = {}
latex_documents = [
(
master_doc,
"nmma.tex",
"nmma Documentation",
"The nmma Team",
"manual",
),
]
man_pages = [(master_doc, "nmma", "nmma Documentation", [author], 1)]
texinfo_documents = [
(
master_doc,
"nmma",
"nmma Documentation",
author,
"nmma",
"One line description of project.",
"Miscellaneous",
),
]
def setup(app):
app.add_css_file("nmma-docs.css")