docs: make English the default docs language and fix link paths

This commit is contained in:
zhayujie
2026-05-31 17:52:22 +08:00
parent 126649f70f
commit 7bf4ef3d05
231 changed files with 8999 additions and 8974 deletions

View File

@@ -1,24 +1,24 @@
---
title: edit - 文件编辑
description: 通过精确文本替换编辑文件
title: edit - File Edit
description: Edit files via precise text replacement
---
通过精确文本替换编辑文件。如果 `oldText` 为空则追加到文件末尾。
Edit files via precise text replacement. If `oldText` is empty, appends to the end of the file.
## 依赖
## Dependencies
无额外依赖,默认可用。
No extra dependencies, available by default.
## 参数
## Parameters
| 参数 | 类型 | 必填 | 说明 |
| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `path` | string | 是 | 文件路径 |
| `oldText` | string | 是 | 要替换的原始文本(为空时追加到末尾) |
| `newText` | string | 是 | 替换后的文本 |
| `path` | string | Yes | File path |
| `oldText` | string | Yes | Original text to replace (empty to append) |
| `newText` | string | Yes | Replacement text |
## 使用场景
## Use Cases
- 修改配置文件中的特定参数
- 修复代码中的 bug
- 在文件指定位置插入内容
- Modify specific parameters in configuration files
- Fix bugs in code
- Insert content at specific positions in files