Skip to content

Commit

Permalink
docs: update group config for Components category. (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
YumoImer authored Oct 15, 2024
1 parent f436a50 commit a7adab9
Show file tree
Hide file tree
Showing 21 changed files with 65 additions and 39 deletions.
28 changes: 9 additions & 19 deletions .dumi/theme/themeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,16 @@ export default {
typeOrder: {
// Component
Overview: -1,
General: 0,
Layout: 1,
Navigation: 2,
'Data Entry': 3,
'Data Display': 4,
Feedback: 5,
Other: 6,
Runtime: 7,
Deprecated: 8,
UI: 0,
Runtime: 1,
Tool: 2,
Other: 3,

组件总览: -1,
通用: 0,
布局: 1,
导航: 2,
数据录入: 3,
数据展示: 4,
反馈: 5,
其他: 6,
废弃: 7,
运行时: 8,
总览: -1,
用户界面: 0,
运行时: 1,
工具: 2,
其他: 3,

// Design
原则: 1,
Expand Down
4 changes: 3 additions & 1 deletion components/bubble/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: Bubble
description: A bubble component for chat.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*HjY3QKszqFEAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/bubble/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: Bubble
subtitle: 聊天气泡
description: 用于聊天的气泡组件。
Expand Down
4 changes: 3 additions & 1 deletion components/conversations/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: Conversations
description: Used to manage and view the conversation list
cover: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*PRjsQpR3rCwAAAAAAAAAAAAADgCCAQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/conversations/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: Conversations
subtitle: 会话列表
description: 用于管理、查看会话列表
Expand Down
2 changes: 1 addition & 1 deletion components/overview/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: Components
title: Components Overview
title: Overview
showImport: false
---

Expand Down
2 changes: 1 addition & 1 deletion components/overview/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
category: Components
title: 组件总览
title: 总览
showImport: false
---

Expand Down
4 changes: 3 additions & 1 deletion components/prompts/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: Prompts
description: Display a predefined set of questions or suggestion.
cover: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*1ysXSqEnAckAAAAAAAAAAAAADgCCAQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/prompts/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: Prompts
subtitle: 提示集
description: 用于显示一组与当前上下文相关的预定义的问题或建议。
Expand Down
4 changes: 3 additions & 1 deletion components/sender/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: Sender
description: A input component for chat.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*SMzgSJZE_AwAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/sender/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: Sender
subtitle: 输入框
description: 用于聊天的输入框组件。
Expand Down
4 changes: 3 additions & 1 deletion components/suggestion/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: Suggestion
description: A suggestion component for chat.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*SMzgSJZE_AwAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/suggestion/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: Suggestion
subtitle: 提示
description: 用于给予用户快捷提示的组件
Expand Down
4 changes: 3 additions & 1 deletion components/thought-chain/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Data Display
group:
title: UI
order: 0
title: ThoughtChain
description: The ThoughtChain component is used to visualize and track the call chain of Actions and Tools invoked by an Agent.
cover: https://mdn.alipayobjects.com/huamei_iwk9zp/afts/img/A*PRjsQpR3rCwAAAAAAAAAAAAADgCCAQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/thought-chain/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 数据展示
group:
title: 用户界面
order: 0
title: ThoughtChain
subtitle: 思维链
description: 思维链组件用于可视化和追踪 Agent 对 Actions 和 Tools 的调用链。
Expand Down
4 changes: 3 additions & 1 deletion components/useXAgent/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Runtime
group:
title: Runtime
order: 1
title: useXAgent
description: Used for model scheduling with Agent hooks.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*HjY3QKszqFEAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/useXAgent/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 运行时
group:
title: 运行时
order: 1
title: useXAgent
subtitle: 模型调度
description: 用于模型调度的 Agent 钩子。
Expand Down
4 changes: 3 additions & 1 deletion components/useXChat/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Runtime
group:
title: Runtime
order: 1
title: useXChat
description: Work with agent hook for data management.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*HjY3QKszqFEAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/useXChat/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 运行时
group:
title: 运行时
order: 1
title: useXChat
subtitle: 数据管理
description: 配合 Agent hook 进行对话数据管理。
Expand Down
4 changes: 3 additions & 1 deletion components/x-provider/index.en-US.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: Other
group:
title: Other
order: 3
title: XProvider
description: Provide a uniform configuration support for x components.
cover: https://mdn.alipayobjects.com/huamei_7uahnr/afts/img/A*NVKORa7BCVwAAAAAAAAAAAAADrJ8AQ/original
Expand Down
4 changes: 3 additions & 1 deletion components/x-provider/index.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
category: Components
group: 其他
group:
title: 其他
order: 3
title: XProvider
subtitle: 全局化配置
description: 为组件提供统一的全局化配置。
Expand Down

0 comments on commit a7adab9

Please sign in to comment.