-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconf.py
More file actions
128 lines (107 loc) · 3.4 KB
/
conf.py
File metadata and controls
128 lines (107 loc) · 3.4 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
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
124
125
126
127
128
# 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 os
import sys
# Add the project root to the Python path
sys.path.insert(0, os.path.abspath(".."))
project = "Evolution OpenAI"
copyright = "2024, Evolution ML Inference Team"
author = "Evolution ML Inference Team"
release = "1.0.0"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"myst_parser",
"sphinx_autodoc_typehints",
]
# Исключаем проблемные builders для Python 3.13+
if sys.version_info >= (3, 13):
# В Python 3.13+ модуль imghdr был удален, поэтому исключаем epub3 builder
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
else:
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
templates_path = ["_templates"]
language = "en"
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
# -- Extension configuration -------------------------------------------------
# Napoleon settings for Google/NumPy style docstrings
napoleon_google_docstring = True
napoleon_numpy_docstring = True
napoleon_include_init_with_doc = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
napoleon_use_admonition_for_notes = False
napoleon_use_admonition_for_references = False
napoleon_use_ivar = False
napoleon_use_param = True
napoleon_use_rtype = True
napoleon_type_aliases = None
napoleon_attr_annotations = True
# Autodoc settings
autodoc_default_options = {
"members": True,
"member-order": "bysource",
"special-members": "__init__",
"undoc-members": True,
"exclude-members": "__weakref__",
}
# Type hints
autodoc_typehints = "description"
autodoc_typehints_description_target = "documented"
# Intersphinx mapping
intersphinx_mapping = {
"python": ("https://docs.python.org/3/", None),
}
# MyST Parser settings
myst_enable_extensions = [
"deflist",
"tasklist",
"colon_fence",
]
# Custom CSS
html_css_files = [
"custom.css",
]
# Theme options
html_theme_options = {
"canonical_url": "",
"analytics_id": "",
"logo_only": False,
"prev_next_buttons_location": "bottom",
"style_external_links": False,
"vcs_pageview_mode": "",
"style_nav_header_background": "#2980B9",
"collapse_navigation": True,
"sticky_navigation": True,
"navigation_depth": 4,
"includehidden": True,
"titles_only": False,
}
# HTML context
html_context = {
"display_github": True,
"github_user": "cloud-ru-tech",
"github_repo": "evolution-openai-python",
"github_version": "main",
"conf_py_path": "/docs/",
}
# Custom sidebar
html_sidebars = {
"**": [
"navigation.html",
"relations.html",
"searchbox.html",
]
}