docs: update zh-tw (#265)

Reviewed-on: https://gitea.com/gitea/docs/pulls/265
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: ifurther <55025025+ifurther@users.noreply.github.com>
Co-committed-by: ifurther <55025025+ifurther@users.noreply.github.com>
This commit is contained in:
ifurther
2025-09-03 21:00:35 +00:00
committed by techknowlogick
parent 908a27589d
commit cb462089e9
88 changed files with 3545 additions and 3423 deletions

View File

@@ -4,29 +4,29 @@ slug: "conan"
sidebar_position: 20
---
# Conan 软件包注册
# Conan 軟體包註冊
您的用户或组织发布 [Conan](https://conan.io/) 软件包。
您的使用者或組織發佈 [Conan](https://conan.io/) 軟體包。
## 要求
要使用 [conan](https://conan.io/downloads.html) 软件包注册表,您需要使用 conan 命令行工具来消费和发布软件包。
要使用 [conan](https://conan.io/downloads.html) 軟體包註冊表,您需要使用 conan 命令行工具来消费和發佈軟體包。
## 配置软件包注册
## 配置軟體包註冊
要注册软件包注册表,您需要配置一个新的 Conan remote
要注册軟體包註冊表,您需要配置一个新的 Conan remote
```shell
conan remote add {remote} https://gitea.example.com/api/packages/{owner}/conan
conan user --remote {remote} --password {password} {username}
```
| 参数 | 描述 |
| 參數 | 描述 |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| `remote` | 远程名。 |
| `username` | 您的 Gitea 用户名。 |
| `password` | 您的 Gitea 密。如果您使用 2FA 或 OAuth使用[个人访问令牌](development/api-usage.md#通-api-认证)替代密。 |
| `owner` | 软件包的所有者。 |
| `remote` | 远程名。 |
| `username` | 您的 Gitea 使用者名。 |
| `password` | 您的 Gitea 密。如果您使用 2FA 或 OAuth使用[个人访问令牌](development/api-usage.md#通-api-認證)替代密。 |
| `owner` | 軟體包的所有者。 |
例如:
@@ -35,17 +35,17 @@ conan remote add gitea https://gitea.example.com/api/packages/testuser/conan
conan user --remote gitea --password password123 testuser
```
## 发布软件
## 發佈軟體
运行以下命令发布 Conan 软件包:
运行以下命令發佈 Conan 軟體包:
```shell
conan upload --remote={remote} {recipe}
```
| 参数 | 描述 |
| 參數 | 描述 |
| -------- | --------------- |
| `remote` | 远程名 |
| `remote` | 远程名 |
| `recipe` | 要上传的 recipe |
For example:
@@ -54,19 +54,19 @@ For example:
conan upload --remote=gitea ConanPackage/1.2@gitea/final
```
Gitea Conan 软件包注册表支持完整的[版本修订](https://docs.conan.io/en/latest/versioning/revisions.html)。
Gitea Conan 軟體包註冊表支持完整的[版本修订](https://docs.conan.io/en/latest/versioning/revisions.html)。
## 安装软件
## 安裝軟體
要从软件包注册表中安Conan软件包,请执行以下命令:
要从軟體包註冊表中安Conan軟體包,請執行以下命令:
```shell
conan install --remote={remote} {recipe}
```
| 参数 | 描述 |
| 參數 | 描述 |
| -------- | --------------- |
| `remote` | 远程名 |
| `remote` | 远程名 |
| `recipe` | 要下载的 recipe |
例如: