Repository navigation
Expand file tree
/
Copy pathmkdocs.yml
More file actions
219 lines (210 loc) · 7.63 KB
/
Copy pathmkdocs.yml
File metadata and controls
219 lines (210 loc) · 7.63 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
site_name: DashScope Python SDK
site_description: dashscope 2.0 Python SDK documentation — sync/async client and API reference for Alibaba Cloud Model Studio (DashScope)
site_url: https://dashscope.github.io/dashscope-sdk-python/
repo_url: https://github.com/dashscope/dashscope-sdk-python
repo_name: dashscope/dashscope-sdk-python
docs_dir: docs
site_dir: site
theme:
name: material
custom_dir: docs/overrides
language: en
# System font stack: the Google Fonts stylesheet is render-blocking and
# unreachable for mainland-China readers, stalling first paint.
font: false
# logo.svg is a 1:1 potrace vectorization of logo.png with the opaque
# white background dropped (the white tile read as a solid block on the
# dark header); the mark itself is unchanged.
logo: assets/logo.svg
favicon: assets/favicon.png
features:
- navigation.tabs
- navigation.tabs.sticky
- navigation.path
- navigation.sections
- navigation.top
- navigation.footer
# Scroll position reflected in the URL hash for shareable links.
# navigation.instant is deliberately NOT enabled: the i18n contextual
# language switcher is incompatible with it (stale header links after
# client-side page swaps).
- navigation.tracking
- search.suggest
- search.highlight
- content.code.copy
- toc.follow
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
primary: white
accent: indigo
toggle:
icon: material/brightness-7
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
primary: black
accent: indigo
toggle:
icon: material/brightness-4
name: Switch to light mode
icon:
repo: fontawesome/brands/github
# FastAPI-style template tweaks (link color on white header, active tab
# underline, centered page title)
extra_css:
- stylesheets/extra.css
markdown_extensions:
- admonition
- attr_list
- md_in_html
- tables
- toc:
permalink: true
# Sidebar outline stops at API root headings (h3); member methods
# and attributes (h4) stay out of the "On this page" nav.
toc_depth: 3
- pymdownx.details
- pymdownx.superfences
- pymdownx.highlight:
# Every highlighted block restarts its anchor counter at zero. With
# multiple mkdocstrings source blocks this duplicates IDs and makes
# later gutter links jump to earlier blocks; keep visual line numbers
# but disable the broken per-line anchors.
anchor_linenums: false
- pymdownx.inlinehilite
# Icon shortcodes for the landing-page feature cards (:material-*:).
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- pymdownx.tabbed:
alternate_style: true
plugins:
- search:
lang:
- en
- zh
# i18n must come after search and before mkdocstrings; Material renders
# the language selector in the header automatically from this config.
- i18n:
docs_structure: folder
languages:
- locale: en
default: true
name: English
build: true
- locale: zh
name: 简体中文
build: true
nav_translations:
Features: 特性
Learn: 学习
Quickstart: 快速开始
Migrating from 1.x: 从 1.x 迁移
Guides: 专题指南
Capability recipes: 能力速查示例
Qwen Live (realtime voice): Qwen Live(实时语音)
SDK Expert (AgenticX): SDK 专家(AgenticX)
CLI: 命令行工具
Reference: 参考
Client & Configuration: 客户端与配置
Chat: 对话(Chat)
Audio: 语音(Audio)
Client Resources: 客户端资源
Protocols: 协议适配器
AgentStudio: 托管智能体(AgentStudio)
Agentic RL: 强化学习微调
Types: 类型(Types)
Errors: 错误(Errors)
Devkit: 开发工具
Legacy 1.x: 旧版 1.x
Resources: 资源
Developer Guide: 开发者指南
Examples (GitHub): 示例(GitHub)
Help & Issues: 帮助与问题反馈
About: 关于
Release Notes: 发行说明
# Resolve cross-references to the same-language page when an identifier
# exists in both locales (en at the root, zh under zh/).
- autorefs:
resolve_closest: true
- mkdocstrings:
handlers:
python:
paths: [.]
options:
docstring_style: google
# Roots render as h3 under each page's h2 sections so the
# toc_depth above groups them per section instead of mixing
# them with section titles.
heading_level: 3
show_source: true
show_root_heading: true
show_root_full_path: false
members_order: source
separate_signature: true
show_signature_annotations: true
# Kind badges (class/function/method) in headings and TOC.
show_symbol_type_heading: true
show_symbol_type_toc: true
# Constructor parameters are public API contract: render them
# on the class itself. merge_init_into_class only sees members
# that survive the filters, so "!^_" alone silently dropped
# __init__ and the merge rendered nothing (the earlier "no
# effect" observation); re-include __init__ explicitly below.
merge_init_into_class: true
# Undocumented members are still contract: pydantic model
# fields, dataclass fields (Config), Settings properties and
# the ChatStream consumption helpers carry no docstrings but
# must show their names, types and defaults in the Reference.
show_if_no_docstring: true
filters:
- "!^_"
# Last matching filter wins: keep __init__ for the merge above.
- "^__init__$"
# pydantic's model_config is library plumbing, not SDK API.
- "!^model_"
nav:
- DashScope Python SDK: index.md
- Features: features.md
- Learn:
- Quickstart: quickstart.md
- Migrating from 1.x: migration.md
- Guides:
- Capability recipes: guides/recipes.md
- Qwen Live (realtime voice): guides/qwen-live-python-sdk.md
- SDK Expert (AgenticX): guides/expert.md
- CLI: cli.md
- Reference:
- Client & Configuration: reference/client.md
- Chat: reference/chat.md
- Audio: reference/audio.md
- Client Resources: reference/resources.md
- Protocols: reference/protocols.md
- AgentStudio: reference/agentstudio.md
- Agentic RL: reference/agentic-rl.md
- Types: reference/types.md
- Errors: reference/errors.md
- Devkit: reference/devkit.md
- Legacy 1.x: reference/legacy.md
- Resources:
- Developer Guide: develop.md
- Examples (GitHub): https://github.com/dashscope/dashscope-sdk-python/tree/main/examples
- Help & Issues: https://github.com/dashscope/dashscope-sdk-python/issues
- About: about.md
- Release Notes: release-notes.md
# Maintenance notes are repo-only, not part of the site (README.md would
# conflict with index.md)
exclude_docs: |
README.md
README_zh.md
overrides/*
hooks.py
hooks:
- docs/hooks.py
extra:
social:
- icon: fontawesome/brands/github
link: https://github.com/dashscope/dashscope-sdk-python
- icon: fontawesome/brands/python
link: https://pypi.org/project/dashscope/