Skip to content

Commit 646b412

Browse files
committed
add language change
1 parent bc3a135 commit 646b412

8 files changed

Lines changed: 70 additions & 74 deletions

File tree

README_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ v1.8.0 之前版本需要手工运行以下升级命令升级:
170170
$ tos flash upgrade
171171
```
172172

173-
更多 TuyaOpen 相关文档请参考 [TuyaOpen 开发指南](https://tuyaopen.readthedocs.io/zh-cn/latest)
173+
更多 TuyaOpen 相关文档请参考 [TuyaOpen 开发指南](https://docs.tuyaopen.io/zh)
174174

175175
## 支持 platform 列表
176176
| 名称 | 支持状态 | 介绍 | 调试日志串口 |

docs/en/_static/css/custom.css

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,7 @@
88
background: #fcfcfc; /* 设置内容区域背景颜色 */
99
}
1010

11-
/* 版本选择器样式 */
12-
.smv-current-version {
13-
background-color: #f5f5f5;
14-
padding: 10px;
15-
margin-bottom: 10px;
16-
border: 1px solid #ddd;
17-
border-radius: 4px;
18-
}
19-
20-
.smv-current-version a {
21-
color: #333;
22-
}
23-
24-
.smv-other-versions {
25-
margin-top: 10px;
26-
}
27-
28-
.smv-other-versions ul {
29-
list-style-type: none;
30-
padding: 0;
31-
}
32-
33-
.smv-other-versions li {
34-
margin-bottom: 5px;
35-
}
36-
37-
.smv-other-versions a {
38-
color: #2980b9;
11+
/* 修改标题栏背景色为白色 */
12+
.wy-side-nav-search, .wy-nav-top {
13+
background-color: rgb(245, 245, 245) !important;
3914
}

docs/en/conf.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@
66
# -- Project information -----------------------------------------------------
77
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
88

9-
project = 'TuyaOpen 开发指南'
10-
copyright = '2025, 杭州涂鸦信息技术有限公司'
9+
project = 'TuyaOpen Development Guide'
10+
copyright = '2021-%Y, Tuya Inc'
1111
author = 'Tuya'
1212
release = '1.2.0'
1313

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

17-
extensions = ['myst_parser','sphinx_markdown_tables','sphinx_copybutton']
17+
extensions = [
18+
'myst_parser',
19+
'sphinx_markdown_tables',
20+
'sphinx_copybutton',
21+
'sphinxcontrib.mermaid',
22+
'sphinx_design',
23+
'sphinx_sitemap',
24+
]
1825

1926
templates_path = ['_templates']
2027
exclude_patterns = []
2128

22-
language = 'zh_CN'
29+
language = 'en'
2330

2431
html_logo = '../images/TuyaOpen.png'
2532

docs/en/index.rst

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
TuyaOpen Development Guide
6+
TuyaOpen Development Guide
77
===============================
88

9+
.. raw:: html
10+
11+
<p style="text-align: left;">
12+
<a class="reference external" href="https://docs.tuyaopen.io/zh/index.html">
13+
[&#x04E2D;&#x02F42;]
14+
</a>
15+
</p>
16+
17+
.. _lvgl_landing_page:
18+
919

1020
.. figure:: ../images/TuyaOpen.png
1121

22+
1223
This open-source framework for AIoT development, built on the proven TuyaOS IoT system, delivers cross-platform architecture, component-based design, and enterprise-grade security validated by 100M+ global devices. Its on-device AI inference engine with cloud-edge multimodal AI capabilities enables developers to access compliant Chinese LLMs (DeepSeek/Qwen/Doubao) or integrate global AI services (ChatGPT/Claude/Gemini) through unified API toolkits for text/voice interactions and image/video generation.
1324

1425
Supporting mainstream open-source ecosystems, it allows seamless porting across chipsets/development boards, accelerating prototyping to production-ready deployment within 72 hours via Tuya's certified hardware partners.

docs/requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sphinx
2+
sphinx-sitemap
3+
sphinxcontrib-jsmath
4+
sphinx-design
5+
sphinx-reredirects
6+
typing-extensions
17
sphinx-markdown-tables>=0.0.17
28
sphinx-rtd-theme>=2.0.0
39
recommonmark>=0.7.1

docs/zh/_static/css/custom.css

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,7 @@
88
background: #fcfcfc; /* 设置内容区域背景颜色 */
99
}
1010

11-
/* 版本选择器样式 */
12-
.smv-current-version {
13-
background-color: #f5f5f5;
14-
padding: 10px;
15-
margin-bottom: 10px;
16-
border: 1px solid #ddd;
17-
border-radius: 4px;
11+
/* 修改标题栏背景色为白色 */
12+
.wy-side-nav-search, .wy-nav-top {
13+
background-color: rgb(245, 245, 245) !important;
1814
}
19-
20-
.smv-current-version a {
21-
color: #333;
22-
}
23-
24-
.smv-other-versions {
25-
margin-top: 10px;
26-
}
27-
28-
.smv-other-versions ul {
29-
list-style-type: none;
30-
padding: 0;
31-
}
32-
33-
.smv-other-versions li {
34-
margin-bottom: 5px;
35-
}
36-
37-
.smv-other-versions a {
38-
color: #2980b9;
39-
}

docs/zh/conf.py

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

99
project = 'TuyaOpen 开发指南'
10-
copyright = '2025, 杭州涂鸦信息技术有限公司'
10+
copyright = '2021-%Y, 杭州涂鸦信息技术有限公司'
1111
author = 'Tuya'
1212
release = '1.2.0'
1313

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

17-
extensions = ['myst_parser','sphinx_markdown_tables','sphinx_copybutton']
17+
extensions = [
18+
'myst_parser',
19+
'sphinx_markdown_tables',
20+
'sphinx_copybutton',
21+
'sphinxcontrib.mermaid',
22+
'sphinx_design',
23+
'sphinx_sitemap',
24+
]
1825

1926
templates_path = ['_templates']
2027
exclude_patterns = []
@@ -34,16 +41,16 @@ def setup(app):
3441

3542
html_theme_options = {
3643
'display_version': True,
37-
'prev_next_buttons_location': 'both',
38-
'style_external_links': False,
39-
'sticky_navigation': True,
40-
'navigation_depth': 4,
41-
'includehidden': True,
42-
'titles_only': False,
43-
'collapse_navigation': False,
44-
'logo_only': True,
45-
'body_max_width': None, # 取消页面宽度限制
46-
'sidebarwidth': '25%', # 调整侧边栏宽度
44+
'prev_next_buttons_location': 'both', # 在文档页面的顶部和底部同时显示 "上一页 / 下一页" 导航按钮。
45+
'style_external_links': False, # 允许外部链接的样式。
46+
'sticky_navigation': True, # 使侧边栏导航菜单在页面滚动时保持固定位置。
47+
'navigation_depth': 4, # 设置侧边栏导航的最大层级深度为 4 级
48+
'includehidden': True, # 禁用导航菜单的自动折叠功能
49+
'titles_only': False, # 禁用页面标题的显示
50+
'collapse_navigation': False, # 禁用导航菜单的自动折叠功能
51+
'logo_only': True, # 仅显示 Logo
52+
'body_max_width': None, # 取消页面宽度限制
53+
'sidebarwidth': '25%', # 调整侧边栏宽度
4754
}
4855

4956
html_js_files = [
@@ -62,3 +69,7 @@ def setup(app):
6269
# 页面路径配置(自动生成编辑链接)
6370
"conf_py_path": "/docs/zh/", # 配置文件的仓库相对路径
6471
}
72+
73+
highlight_language = 'c' # 默认高亮C语言代码
74+
primary_domain = 'c' # 主文档域为C语言
75+

docs/zh/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,23 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6+
67
TuyaOpen 开发指南
78
===============================
89

10+
.. raw:: html
11+
12+
<p style="text-align: left;">
13+
<a class="reference external" href="https://docs.tuyaopen.io/en/index.html">
14+
[English]
15+
</a>
16+
</p>
17+
18+
.. _lvgl_landing_page:
919

1020
.. figure:: ../images/TuyaOpen.png
1121

22+
1223
TuyaOpen 是一个面向 AIoT 行业的开源、开放的开发框架,基于成熟的商业级 IoT 系统 TuyaOS 构建而成。它继承了跨平台、跨系统、组件化和安全合规等核心特性,并经过全球亿级设备和百万级用户的验证。
1324

1425
TuyaOpen 集成了端侧 AI 推理引擎,支持涂鸦云智能体中枢,支持端云融合的多模态 AI 能力。开发者可以无缝调用国内合规的大模型(如 DeepSeek、千问、豆包)或灵活对接全球顶尖的 AI 服务(如 ChatGPT、Claude、Gemini)。通过多样化的工具生态,开发者能够实现文字和语音对话、图片生成、视频生成等多种 AI 功能。

0 commit comments

Comments
 (0)