Skip to content

Commit 8e1c9c2

Browse files
authored
docs(site): use relative link (#1329)
1 parent c935fdb commit 8e1c9c2

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

apps/site/docs/en/index.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ Open-source AI Operator for Web, Mobile App, Automation & Testing
99
- Use Javascript SDK or YAML to write your automation script.
1010

1111
### Web or mobile app
12-
- **Web Automation**: Either [integrate with Puppeteer](https://midscenejs.com/integrate-with-puppeteer.html), [with Playwright](https://midscenejs.com/integrate-with-playwright.html) or use [Bridge Mode](https://midscenejs.com/bridge-mode-by-chrome-extension.html) to control your desktop browser.
13-
- **Android Automation**: Use [Javascript SDK](https://midscenejs.com/integrate-with-android.html) with adb to control your local Android device.
14-
- **iOS Automation**: Use [Javascript SDK](https://midscenejs.com/integrate-with-ios.html) with WebDriverAgent to control your local iOS device.
12+
- **Web Automation**: Either [integrate with Puppeteer](./integrate-with-puppeteer), [with Playwright](./integrate-with-playwright) or use [Bridge Mode](./bridge-mode-by-chrome-extension) to control your desktop browser.
13+
- **Android Automation**: Use [Javascript SDK](./integrate-with-android) with adb to control your local Android device.
14+
- **iOS Automation**: Use [Javascript SDK](./integrate-with-ios) with WebDriverAgent to control your local iOS device.
1515

1616
### Tools
1717
- **Visual Reports for Debugging**: Through our test reports and Playground, you can easily understand, replay and debug the entire process.
18-
- [**Caching for Efficiency**](https://midscenejs.com/caching.html): Replay your script with cache and get the result faster.
19-
- **MCP**: Allows other MCP Clients to directly use Midscene's capabilities. [**Web MCP**](https://midscenejs.com/web-mcp.html) [**Android MCP**](https://midscenejs.com/mcp-android.html)
18+
- [**Caching for Efficiency**](./caching): Replay your script with cache and get the result faster.
19+
- **MCP**: Allows other MCP Clients to directly use Midscene's capabilities. [**Web MCP**](./web-mcp) [**Android MCP**](./mcp-android)
2020

2121
### Three kinds of APIs
22-
- [Interaction API](https://midscenejs.com/api.html#interaction-methods): interact with the user interface.
23-
- [Data Extraction API](https://midscenejs.com/api.html#data-extraction): extract data from the user interface and dom.
24-
- [Utility API](https://midscenejs.com/api.html#more-apis): utility functions like `aiAssert()`, `aiLocate()`, `aiWaitFor()`.
22+
- [Interaction API](./api#interaction-methods): interact with the user interface.
23+
- [Data Extraction API](./api#data-extraction): extract data from the user interface and dom.
24+
- [Utility API](./api#more-apis): utility functions like `aiAssert()`, `aiLocate()`, `aiWaitFor()`.
2525

2626

2727
## Showcases
@@ -43,17 +43,17 @@ We've prepared some showcases for you to learn the use of Midscene.js.
4343

4444
## Zero-code quick experience
4545

46-
- **[Chrome Extension](https://midscenejs.com/quick-experience.html)**: Start in-browser experience immediately through [the Chrome Extension](https://midscenejs.com/quick-experience.html), without writing any code.
47-
- **[Android Playground](https://midscenejs.com/quick-experience-with-android.html)**: There is also a built-in Android playground to control your local Android device.
48-
- **[iOS Playground](https://midscenejs.com/quick-experience-with-ios.html)**: There is also a built-in iOS playground to control your local iOS device.
46+
- **[Chrome Extension](./quick-experience)**: Start in-browser experience immediately through [the Chrome Extension](./quick-experience), without writing any code.
47+
- **[Android Playground](./quick-experience-with-android)**: There is also a built-in Android playground to control your local Android device.
48+
- **[iOS Playground](./quick-experience-with-ios)**: There is also a built-in iOS playground to control your local iOS device.
4949

5050
## Model choices
5151

5252
Midscene.js supports both multimodal LLMs like `gpt-4o`, and visual-language models like `Qwen2.5-VL`, `Doubao-1.5-thinking-vision-pro`, `gemini-2.5-pro` and `UI-TARS`.
5353

5454
Visual-language models are recommended for UI automation.
5555

56-
Read more about [Choose a model](https://midscenejs.com/choose-a-model)
56+
Read more about [Choose a model](./choose-a-model)
5757

5858
## Two styles of automation
5959

@@ -79,7 +79,7 @@ for (const record of recordList) {
7979
}
8080
```
8181

82-
> For more details about the workflow style, please refer to [Blog - Use JavaScript to Optimize the AI Automation Code](https://midscenejs.com/blog-programming-practice-using-structured-api.html)
82+
> For more details about the workflow style, please refer to [Blog - Use JavaScript to Optimize the AI Automation Code](./blog-programming-practice-using-structured-api)
8383
8484

8585
## Comparing to other projects
@@ -96,7 +96,7 @@ There are so many UI automation tools out there, and each one seems to be all-po
9696

9797
* Home Page and Documentation: [https://midscenejs.com](https://midscenejs.com/)
9898
* Sample Projects: [https://github.com/web-infra-dev/midscene-example](https://github.com/web-infra-dev/midscene-example)
99-
* API Reference: [https://midscenejs.com/api.html](https://midscenejs.com/api.html)
99+
* API Reference: [https://midscenejs.com/api.html](./api)
100100
* GitHub: [https://github.com/web-infra-dev/midscene](https://github.com/web-infra-dev/midscene)
101101

102102
## Community

apps/site/docs/zh/index.mdx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99
- 使用 Javascript SDK 或 YAML 格式编写自动化脚本。
1010

1111
### 网页或移动应用
12-
- **网页自动化**:可以[与 Puppeteer 集成](https://midscenejs.com/integrate-with-puppeteer.html)[与 Playwright 集成](https://midscenejs.com/integrate-with-playwright.html)或使用[桥接模式](https://midscenejs.com/bridge-mode-by-chrome-extension.html)来控制桌面浏览器。
13-
- **Android 自动化**:使用 [Javascript SDK](https://midscenejs.com/integrate-with-android.html) 配合 adb 来控制本地 Android 设备。
14-
- **iOS 自动化**:使用 [Javascript SDK](https://midscenejs.com/zh/integrate-with-ios.html) 配合 WebDriverAgent 来控制本地 iOS 设备。
12+
- **网页自动化**:可以[与 Puppeteer 集成](./integrate-with-puppeteer)[与 Playwright 集成](./integrate-with-playwright)或使用[桥接模式](./bridge-mode-by-chrome-extension)来控制桌面浏览器。
13+
- **Android 自动化**:使用 [Javascript SDK](./integrate-with-android) 配合 adb 来控制本地 Android 设备。
14+
- **iOS 自动化**:使用 [Javascript SDK](./integrate-with-ios) 配合 WebDriverAgent 来控制本地 iOS 设备。
1515

1616
### 工具
1717
- **用于调试的可视化报告**: 通过我们的测试报告和 Playground,你可以轻松理解、回放和调试整个过程。
18-
- [**使用缓存,提高执行效率**](https://midscenejs.com/zh/caching.html): 使用缓存能力重放脚本,提高执行效率。
19-
- **MCP**: 允许其他 MCP Client 直接使用 Midscene 的能力。[**Web MCP**](https://midscenejs.com/zh/web-mcp.html) [**Android MCP**](https://midscenejs.com/zh/mcp-android.html)
18+
- [**使用缓存,提高执行效率**](./caching): 使用缓存能力重放脚本,提高执行效率。
19+
- **MCP**: 允许其他 MCP Client 直接使用 Midscene 的能力。[**Web MCP**](./web-mcp) [**Android MCP**](./mcp-android)
2020

2121
### 三种 API 类型
2222

23-
- [**交互 API**](https://midscenejs.com/zh/api.html#interaction-methods): 与用户界面交互。
24-
- [**数据提取 API**](https://midscenejs.com/zh/api.html#data-extraction): 从用户界面和 DOM 中提取数据。
25-
- [**实用 API**](https://midscenejs.com/zh/api.html#more-apis): 实用函数,如 `aiAssert()` (断言), `aiLocate()` (定位), `aiWaitFor()` (等待)。
23+
- [**交互 API**](./api#interaction-methods): 与用户界面交互。
24+
- [**数据提取 API**](./api#data-extraction): 从用户界面和 DOM 中提取数据。
25+
- [**实用 API**](./api#more-apis): 实用函数,如 `aiAssert()` (断言), `aiLocate()` (定位), `aiWaitFor()` (等待)。
2626

2727
## 演示案例
2828

@@ -42,17 +42,17 @@
4242

4343
## 零代码快速体验
4444

45-
- **[Chrome 插件](https://midscenejs.com/quick-experience.html)**:通过 [Chrome 插件](https://midscenejs.com/quick-experience.html) 立即开始浏览器内体验,无需编写任何代码。
46-
- **[Android Playground](https://midscenejs.com/quick-experience-with-android.html)**:使用 Android playground 来控制你的本地 Android 设备。
47-
- **[iOS Playground](https://midscenejs.com/zh/quick-experience-with-ios.html)**:使用 iOS playground 来控制你的本地 iOS 设备。
45+
- **[Chrome 插件](./quick-experience)**:通过 [Chrome 插件](./quick-experience) 立即开始浏览器内体验,无需编写任何代码。
46+
- **[Android Playground](./quick-experience-with-android)**:使用 Android playground 来控制你的本地 Android 设备。
47+
- **[iOS Playground](./quick-experience-with-ios)**:使用 iOS playground 来控制你的本地 iOS 设备。
4848

4949
## 模型选择
5050

5151
Midscene.js 支持多模态 LLM 模型,如 `gpt-4o`,以及视觉语言模型,如 `Qwen2.5-VL``Doubao-1.5-thinking-vision-pro``gemini-2.5-pro``UI-TARS`
5252

5353
推荐使用视觉语言模型进行 UI 自动化。
5454

55-
了解更多关于[选择 AI 模型](https://midscenejs.com/choose-a-model)
55+
了解更多关于[选择 AI 模型](./choose-a-model)
5656

5757
## 两种自动化风格
5858

@@ -78,7 +78,7 @@ for (const record of recordList) {
7878
}
7979
```
8080

81-
> 有关工作流风格的更多详细信息,请参阅 [Blog - 使用 JavaScript 优化 AI 自动化代码](https://midscenejs.com/zh/blog-programming-practice-using-structured-api.html)
81+
> 有关工作流风格的更多详细信息,请参阅 [Blog - 使用 JavaScript 优化 AI 自动化代码](./blog-programming-practice-using-structured-api)
8282
8383

8484
## 与其他工具比较
@@ -93,7 +93,7 @@ for (const record of recordList) {
9393

9494
* 主页和文档:[https://midscenejs.com](https://midscenejs.com/)
9595
* 示例项目:[https://github.com/web-infra-dev/midscene-example](https://github.com/web-infra-dev/midscene-example)
96-
* API 参考:[https://midscenejs.com/api.html](https://midscenejs.com/api.html)
96+
* API 参考:[https://midscenejs.com/api.html](./api)
9797
* GitHub:[https://github.com/web-infra-dev/midscene](https://github.com/web-infra-dev/midscene)
9898

9999
## 社区

0 commit comments

Comments
 (0)