Skip to content

Commit 827ba17

Browse files
committed
sphinx:doc
1 parent 0e08ccc commit 827ba17

2 files changed

Lines changed: 83 additions & 10 deletions

File tree

doc/conf.py

Lines changed: 49 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,67 @@
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

99
project = 'DeepX'
10-
copyright = '2025, YourName'
11-
author = 'YourName'
10+
copyright = '2025, DeepX Team'
11+
author = 'DeepX Team'
1212

13-
version = '1.0'
14-
release = '0.1'
13+
version = '0.1.0'
14+
release = '0.1.0-alpha'
1515

1616
# -- General configuration ---------------------------------------------------
1717
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
1818

1919
extensions = [
2020
'sphinx_rtd_theme',
21+
'sphinx.ext.autodoc',
22+
'sphinx.ext.napoleon',
23+
'sphinx.ext.viewcode',
24+
'myst_parser'
2125
]
2226

27+
source_suffix = {
28+
'.rst': 'restructuredtext',
29+
'.md': 'markdown',
30+
}
31+
2332
templates_path = ['_templates']
24-
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
33+
exclude_patterns = [
34+
'_build',
35+
'Thumbs.db',
36+
'.DS_Store',
37+
'README.md',
38+
'node_modules'
39+
]
2540

26-
language = 'zn'
41+
# 多语言支持
42+
language = 'zh_CN'
43+
locale_dirs = ['locale/']
44+
gettext_compact = False
2745

2846
# -- Options for HTML output -------------------------------------------------
2947
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
3048

31-
html_theme = 'alabaster'
32-
html_static_path = ['_static']
49+
html_theme = 'sphinx_rtd_theme'
50+
html_static_path = ['_static']
51+
html_theme_options = {
52+
'logo_only': True,
53+
'display_version': True,
54+
'style_nav_header_background': '#2B2D42',
55+
}
56+
57+
html_css_files = [
58+
'css/custom.css',
59+
]
60+
61+
html_js_files = [
62+
'js/custom.js',
63+
]
64+
65+
# 自定义扩展配置
66+
autodoc_member_order = 'bysource'
67+
napoleon_include_init_with_doc = True
68+
myst_enable_extensions = [
69+
"colon_fence",
70+
"deflist",
71+
"dollarmath",
72+
"html_image",
73+
]

doc/index.rst

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,40 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
DeepX documentation
7-
===================
6+
DeepX 开放计算调度框架
7+
======================
8+
9+
.. toctree::
10+
:maxdepth: 3
11+
:caption: 核心文档
12+
13+
introduction
14+
architecture
15+
quickstart
16+
modules
17+
api_reference
18+
development_guide
19+
20+
.. toctree::
21+
:maxdepth: 2
22+
:caption: 开发者资源
23+
24+
contrib/operator_development
25+
contrib/performance_optimization
26+
contrib/testing_guide
27+
28+
.. toctree::
29+
:maxdepth: 1
30+
:caption: 项目信息
31+
32+
changelog
33+
about
34+
35+
索引和搜索
36+
==========
37+
38+
* :ref:`genindex`
39+
* :ref:`search`
840

941
Add your content using ``reStructuredText`` syntax. See the
1042
`reStructuredText <https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html>`_

0 commit comments

Comments
 (0)