-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathconf.py
More file actions
73 lines (61 loc) · 1.64 KB
/
Copy pathconf.py
File metadata and controls
73 lines (61 loc) · 1.64 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
67
68
69
70
71
72
73
# Configuration file for the Sphinx documentation builder.
import os
import sys
# Add parent directory to path for autodoc
sys.path.insert(0, os.path.abspath(".."))
# Project information
project = "LMMs Engine"
copyright = "2024, LMMs Engine Contributors"
author = "LMMs Engine Contributors"
version = "1.0"
release = "1.0.0"
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.autosectionlabel",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
]
# Use Google style docstrings instead of NumPy docstrings.
napoleon_google_docstring = True
napoleon_numpy_docstring = False
# MyST parser configuration for markdown support
myst_enable_extensions = [
"colon_fence",
"deflist",
]
# Control heading levels in TOC
myst_heading_anchors = 3
# Add markdown support
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
# Theme configuration
html_theme = "sphinx_rtd_theme"
html_theme_options = {
"logo_only": False,
"style_external_links": False,
"vcs_pageview_mode": "edit",
"style_nav_header_background": "#2980B9",
"collapse_navigation": False,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
# Output options
html_static_path = ["_static"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# Internationalization
language = "en"
# LaTeX output
latex_elements = {
"papersize": "letterpaper",
"pointsize": "12pt",
}
# The master toctree document
master_doc = "index"