-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconf.py
75 lines (56 loc) · 1.84 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
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import pygments
project = "TransitLab SimMETRO"
subtitle = "A Modern Rail Transit Simulation Platform"
copyright = "2024, Transit Mobility Lab"
author = "Mojtaba Yousefi"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_book_theme"
highlight_language = "python"
html_static_path = ["_static"]
extensions = [
"sphinxcontrib.bibtex",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx_copybutton",
]
bibtex_bibfiles = ["refs.bib"]
html_css_files = [
"custom.css",
]
highlight_options = {"linenos": True}
html_theme_options = {
"code_font_size": "0.8em",
"code_font_family": "Consolas, 'Courier New', monospace",
}
pygments_style = "friendly"
viewcode_follow_imported_members = True
viewcode_enable_epub = True
latex_elements = {
"preamble": r"""
\usepackage{listings}
\lstset{
basicstyle=\small\ttfamily,
breaklines=true,
breakatwhitespace=true,
frame=single,
showstringspaces=false,
columns=flexible
}
""",
}
autodoc_class_signature = "separated"
def setup(app):
app.add_css_file("custom.css")