Skip to content

Commit 3e24202

Browse files
committed
update docs
1 parent d039115 commit 3e24202

53 files changed

Lines changed: 389 additions & 284 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 140 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,171 @@
1-
# Flashduty Documentation
1+
# Flashduty 文档
22

3-
This repository contains the official documentation for [Flashduty](https://flashcat.cloud/), an incident management and on-call platform similar to PagerDuty. Built with [Mintlify](https://mintlify.com/).
3+
本仓库是 [Flashduty](https://flashcat.cloud/) 的官方文档,基于 [Mintlify](https://mintlify.com/) 构建。
44

5-
## Documentation Structure
5+
## 目录结构
66

77
```
88
docs/
9-
├── zh/ # Chinese documentation
10-
│ ├── home.mdx # Homepage
11-
│ ├── on-call/ # On-call product docs
12-
│ ├── rum/ # RUM product docs
13-
│ ├── monitors/ # Monitors product docs
14-
│ ├── platform/ # Platform configuration
15-
│ ├── openapi/ # API documentation
16-
│ └── ...
17-
├── en/ # English documentation
18-
│ └── (same structure as zh/)
19-
├── logo/ # Logo assets
20-
└── docs.json # Mintlify configuration
9+
├── zh/ # 中文文档
10+
│ ├── home.mdx # 首页
11+
│ ├── on-call/ # On-call 产品文档
12+
│ ├── rum/ # RUM 产品文档
13+
│ ├── monitors/ # Monitors 产品文档
14+
│ ├── platform/ # 平台配置
15+
│ ├── openapi/ # API 文档
16+
│ ├── compliance/ # 安全合规
17+
│ └── changelog/ # 更新日志
18+
├── en/ # 英文文档(与 zh/ 结构一致)
19+
├── logo/ # Logo 资源
20+
├── docs.json # Mintlify 配置文件
21+
└── .cursor/rules/ # 写作规范
22+
├── rule.md # Mintlify 技术写作规范
23+
└── term.md # 翻译术语表
2124
```
2225

23-
## Products
26+
## 产品模块
2427

25-
- **On-call**: Incident management, alert routing, escalation rules, and on-call scheduling
26-
- **RUM**: Real User Monitoring for frontend performance and error tracking
27-
- **Monitors**: Alert rules configuration for various data sources
28+
- **On-call**:故障管理、告警路由、分派策略、值班管理
29+
- **RUM**:真实用户监控,前端性能和异常追踪
30+
- **Monitors**:多数据源告警规则配置
2831

29-
## Development
32+
## 本地开发
3033

31-
### Prerequisites
34+
### 环境准备
3235

33-
Install the [Mintlify CLI](https://www.npmjs.com/package/mint):
36+
安装 [Mintlify CLI](https://www.npmjs.com/package/mint)
3437

3538
```bash
3639
npm i -g mint
3740
```
3841

39-
### Local Preview
42+
### 本地预览
4043

41-
Run the following command at the root of this repository:
44+
在仓库根目录运行:
4245

4346
```bash
4447
mint dev
4548
```
4649

47-
View your local preview at `http://localhost:3000`.
50+
访问 `http://localhost:3000` 查看本地预览。
4851

49-
### Check for Errors
52+
### 检查错误
5053

5154
```bash
5255
mint broken-links
5356
```
5457

55-
## Contributing
58+
## 新增文档
5659

57-
1. All documentation supports both Chinese (`zh/`) and English (`en/`) languages
58-
2. Follow the existing file structure and naming conventions
59-
3. Use Mintlify components for consistent styling
60-
4. Test changes locally before submitting
60+
### 1. 创建文档文件
6161

62-
## Resources
62+
在对应目录下创建 `.mdx` 文件,文件必须以 YAML frontmatter 开头:
6363

64-
- [Flashduty Console](https://console.flashcat.cloud/)
65-
- [Flashduty Website](https://flashcat.cloud/)
66-
- [Mintlify Documentation](https://mintlify.com/docs)
64+
```yaml
65+
---
66+
title: "清晰、具体的标题"
67+
description: "简洁说明页面目的和价值"
68+
keywords: ["关键词1", "关键词2", "关键词3"]
69+
---
70+
```
71+
72+
### 2. 更新导航配置
73+
74+
`docs.json` 中添加新页面路径。找到对应的 `tab``group`,将文件路径添加到 `pages` 数组中:
75+
76+
```json
77+
{
78+
"group": "快速开始",
79+
"pages": [
80+
"zh/on-call/quickstart/quickstart",
81+
"zh/on-call/quickstart/your-new-page" // 新增页面
82+
]
83+
}
84+
```
85+
86+
### 3. 使用规范优化文档
87+
88+
根据 `.cursor/rules/rule.md` 规范,使用 AI 进行文档优化,主要包括:
89+
90+
#### 页面结构规范
91+
92+
- 以最重要的信息开头(倒金字塔结构)
93+
- 使用渐进式披露:基本概念在高级概念之前
94+
- 将复杂程序分解为编号步骤
95+
- 使用描述性、关键词丰富的标题
96+
97+
#### 常用组件
98+
99+
| 组件 | 用途 |
100+
|------|------|
101+
| `<Steps>` | 流程和顺序说明 |
102+
| `<Tabs>` | 平台特定内容或替代方法 |
103+
| `<CodeGroup>` | 多语言代码示例 |
104+
| `<Accordion>` | 可折叠的补充信息 |
105+
| `<Note>` / `<Tip>` / `<Warning>` | 标注提示信息 |
106+
| `<Frame>` | 图片容器 |
107+
| `<CardGroup>` | 相关链接卡片组 |
108+
109+
#### 示例:分步说明
110+
111+
````mdx
112+
<Steps>
113+
<Step title="安装依赖">
114+
运行安装命令:
115+
```bash
116+
npm install
117+
```
118+
</Step>
119+
120+
<Step title="配置环境">
121+
创建配置文件并填写参数。
122+
</Step>
123+
</Steps>
124+
````
125+
126+
#### 示例:多语言代码
127+
128+
````mdx
129+
<Tabs>
130+
<Tab title="Swift">
131+
```swift
132+
let config = Config()
133+
```
134+
</Tab>
135+
136+
<Tab title="Objective-C">
137+
```objc
138+
Config *config = [[Config alloc] init];
139+
```
140+
</Tab>
141+
</Tabs>
142+
````
143+
144+
### 4. 多语言同步
145+
146+
- 中英文文档需保持结构一致
147+
- 翻译时参考 `.cursor/rules/term.md` 术语表
148+
- 英文文档放在 `en/` 目录,路径与 `zh/` 对应
149+
150+
## 写作规范速查
151+
152+
### 语言风格
153+
154+
- 使用清晰、直接的语言
155+
- 在说明中使用第二人称("您")
156+
- 使用主动语态
157+
- 避免术语,必要时首次使用时定义
158+
159+
### 代码示例要求
160+
161+
- 提供完整、可运行的示例
162+
- 指定语言并包含文件名
163+
- 为复杂逻辑添加注释
164+
- 永远不要包含真实的 API 密钥
165+
166+
167+
## 相关资源
168+
169+
- [Flashduty 控制台](https://console.flashcat.cloud/)
170+
- [Flashduty 官网](https://flashcat.cloud/)
171+
- [Mintlify 文档](https://mintlify.com/docs)

en/rum/error-tracking/erro-reporting/android.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: "Android Error Reporting"
3-
description: "Master Flashduty RUM Android SDK error capture mechanisms, including Java/Kotlin crashes, NDK crashes, ANR reporting, manual reporting, and symbolication configuration"
3+
description: "Master Android RUM SDK error capture mechanisms, including Java/Kotlin crashes, NDK crashes, ANR reporting, manual reporting, and symbolication configuration"
44
---
55

6-
This document covers the error capture mechanisms of the Flashcat Android RUM SDK, helping you monitor and diagnose crashes and errors in Android applications.
6+
This document covers the error capture mechanisms of the Android RUM SDK, helping you monitor and diagnose crashes and errors in Android applications.
77

88
<Info>
99
The SDK supports automatic capture of Java/Kotlin crashes, NDK native crashes, and ANR (Application Not Responding), while also providing manual error reporting and symbolicated stack trace features.
1010
</Info>
1111

1212
## Error Types
1313

14-
Flashcat Android RUM can monitor the following types of errors:
14+
Android RUM can monitor the following types of errors:
1515

1616
### Java/Kotlin Crashes
1717

en/rum/error-tracking/erro-reporting/ios.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
title: "iOS"
3-
description: "Master Flashduty RUM iOS SDK error capture mechanisms, including crash capture, App Hangs, Watchdog terminations, manual reporting, and dSYM symbolication"
3+
description: "Master iOS RUM SDK error capture mechanisms, including crash capture, App Hangs, Watchdog terminations, manual reporting, and dSYM symbolication"
44
---
55

6-
This document covers the error capture mechanisms of the Flashcat iOS RUM SDK, helping you monitor and diagnose crashes and errors in iOS applications.
6+
This document covers the error capture mechanisms of the iOS RUM SDK, helping you monitor and diagnose crashes and errors in iOS applications.
77

88
<Info>
99
The SDK supports automatic capture of application crashes, App Hangs (application freezes), and Watchdog terminations, while also providing manual error reporting and dSYM symbolication features.
1010
</Info>
1111

1212
## Error Types
1313

14-
Flashcat iOS RUM can monitor the following types of errors:
14+
iOS RUM can monitor the following types of errors:
1515

1616
### Application Crashes
1717

en/rum/error-tracking/erro-reporting/web.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "Web"
3-
description: "Learn about Flashduty RUM error reporting mechanisms for web applications"
3+
description: "Learn about RUM error reporting mechanisms for web applications"
44
---
55

66
This document covers error types, capture mechanisms, manual reporting methods, React integration, and the error data structure definition.
77

88
## Error Types
99

10-
Flashduty RUM can monitor the following types of errors:
10+
RUM can monitor the following types of errors:
1111

1212
<Tabs>
1313
<Tab title="JavaScript Errors">
@@ -38,7 +38,7 @@ Flashduty RUM can monitor the following types of errors:
3838

3939
### Automatic Error Capture
4040

41-
Flashduty RUM SDK automatically captures the following types of browser errors:
41+
RUM SDK automatically captures the following types of browser errors:
4242

4343
| Error Type | Description |
4444
|------------|-------------|
@@ -96,7 +96,7 @@ try {
9696

9797
### React Error Boundary Integration
9898

99-
Flashduty RUM supports capturing component rendering errors through React [Error Boundaries](https://legacy.reactjs.org/docs/error-boundaries.html) and reporting error information. You can call the `addError` API in `componentDidCatch` to attach component stack information for debugging.
99+
RUM supports capturing component rendering errors through React [Error Boundaries](https://legacy.reactjs.org/docs/error-boundaries.html) and reporting error information. You can call the `addError` API in `componentDidCatch` to attach component stack information for debugging.
100100

101101
<Steps>
102102
<Step title="Create Error Boundary Component">
@@ -159,7 +159,7 @@ Each error record contains the following attributes describing error details and
159159

160160
## Error Filtering and Configuration
161161

162-
To ensure error data accuracy and relevance, Flashduty RUM applies the following filtering rules:
162+
To ensure error data accuracy and relevance, RUM applies the following filtering rules:
163163

164164
<AccordionGroup>
165165
<Accordion title="Default Filtering Rules">

en/rum/error-tracking/error-aggregation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Error Grouping"
3-
description: "Learn about Flashduty RUM error grouping mechanisms to improve Issue localization efficiency."
3+
description: "Learn about RUM error grouping mechanisms to improve Issue localization efficiency."
44
---
55

66
When a new error event occurs, Flashduty uses a three-step aggregation strategy to group errors into Issues, effectively reducing the number of errors that need to be handled.

en/rum/error-tracking/error-reporting.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
title: "Error Reporting"
3-
description: "Learn about Flashduty RUM's error reporting mechanism."
3+
description: "Learn about RUM's error reporting mechanism."
44
---
55

66
This document covers exception types, capture mechanisms, manual reporting methods, React integration, and the data structure definition for reported exceptions.
77

88
## Exception Types
99

10-
Flashduty RUM can monitor the following types of exceptions:
10+
RUM can monitor the following types of exceptions:
1111

1212
<Tabs>
1313
<Tab title="JavaScript Exceptions">
@@ -38,7 +38,7 @@ Flashduty RUM can monitor the following types of exceptions:
3838

3939
### Automatic Error Capture
4040

41-
Flashduty RUM SDK automatically captures the following types of browser errors:
41+
RUM SDK automatically captures the following types of browser errors:
4242

4343
| Error Type | Description |
4444
|----------|------|
@@ -96,7 +96,7 @@ try {
9696

9797
### React Error Boundary Integration
9898

99-
Flashduty RUM supports capturing component rendering errors through React [Error Boundaries](https://legacy.reactjs.org/docs/error-boundaries.html) and reporting error information. You can call the `addError` API in `componentDidCatch`, attaching component stack information for debugging.
99+
RUM supports capturing component rendering errors through React [Error Boundaries](https://legacy.reactjs.org/docs/error-boundaries.html) and reporting error information. You can call the `addError` API in `componentDidCatch`, attaching component stack information for debugging.
100100

101101
<Steps>
102102
<Step title="Create Error Boundary Component">
@@ -159,7 +159,7 @@ Each error record contains the following attributes to describe error details an
159159

160160
## Error Filtering and Configuration
161161

162-
To ensure accuracy and relevance of error data, Flashduty RUM applies the following filtering rules:
162+
To ensure accuracy and relevance of error data, RUM applies the following filtering rules:
163163

164164
<AccordionGroup>
165165
<Accordion title="Default Filtering Rules">

en/rum/error-tracking/error-viewing.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "Issue Overview and Details"
3-
description: "Master Flashduty RUM error tracking features to quickly discover and resolve website issues."
3+
description: "Master RUM error tracking features to quickly discover and resolve website issues."
44
---
55

6-
After errors are reported, you can view Issues in the Error Tracking module. In Flashduty RUM, an Issue is a group of similar errors, typically related to the same bug.
6+
After errors are reported, you can view Issues in the Error Tracking module. In RUM, an Issue is a group of similar errors, typically related to the same bug.
77

88
<Frame>
99
<img src="https://docs-cdn.flashcat.cloud/imges/png/7eaffcd3d631d03ffb553f8956ff94ac.png" alt="Issue List" />
@@ -70,7 +70,7 @@ For regression-related transition logic, please refer to [Issue Status](./issue-
7070
| Affected Sessions | Sort by number of affected RUM sessions |
7171
</Tab>
7272
<Tab title="Filters">
73-
Flashduty RUM automatically indexes predefined attributes for your Issues and creates corresponding filters.
73+
RUM automatically indexes predefined attributes for your Issues and creates corresponding filters.
7474

7575
<Frame>
7676
<img src="https://docs-cdn.flashcat.cloud/imges/png/718ff0527731fd89465a3a7e0fb7c7ea.png" alt="Filters" />

en/rum/error-tracking/issue-alerts.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
title: "Issue Alerts"
3-
description: "Learn how Flashduty RUM Issues trigger alerts"
3+
description: "Learn how RUM Issues trigger alerts"
44
---
55

6-
Flashduty RUM automatically aggregates all error events reported by the SDK into Issues, helping you prioritize and find the most impactful problems, making it easier to reduce service downtime and user frustration.
6+
RUM automatically aggregates all error events reported by the SDK into Issues, helping you prioritize and find the most impactful problems, making it easier to reduce service downtime and user frustration.
77

88
You can inspect aggregated Issues through daily checks in the console, or configure alert notifications for Issues to be notified immediately when problems occur.
99

en/rum/error-tracking/issue-status.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Issue Status"
3-
description: "Learn about Flashduty RUM Issue status transitions"
3+
description: "Learn about RUM Issue status transitions"
44
---
55

66
In Error Tracking, all Issues have a status that helps you categorize and prioritize problems.

0 commit comments

Comments
 (0)