Skip to content

Commit e3da8c1

Browse files
fix migrations documents (#17679)
Co-authored-by: techknowlogick <[email protected]>
1 parent 21f6c0b commit e3da8c1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/content/doc/developers/migrations.en-us.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ repository data from other git host platforms to Gitea or, in the future, migrat
2020
git host platforms.
2121
Currently, migrations from Github, Gitlab, and other Gitea instances are implemented.
2222

23-
First of all, Gitea defines some standard objects in packages [modules/migrations/base](https://github.com/go-gitea/gitea/tree/main/modules/migrations/base).
23+
First of all, Gitea defines some standard objects in packages [modules/migration](https://github.com/go-gitea/gitea/tree/main/modules/migration).
2424
They are `Repository`, `Milestone`, `Release`, `ReleaseAsset`, `Label`, `Issue`, `Comment`, `PullRequest`, `Reaction`, `Review`, `ReviewComment`.
2525

2626
## Downloader Interfaces
@@ -31,11 +31,11 @@ To migrate from a new git host platform, there are two steps to be updated.
3131
- You should implement a `DownloaderFactory` which will be used to detect if the URL matches and create the above `Downloader`.
3232
- You'll need to register the `DownloaderFactory` via `RegisterDownloaderFactory` on `init()`.
3333

34-
You can find these interfaces in [downloader.go](https://github.com/go-gitea/gitea/blob/main/modules/migrations/base/downloader.go).
34+
You can find these interfaces in [downloader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/downloader.go).
3535

3636
## Uploader Interface
3737

3838
Currently, only a `GiteaLocalUploader` is implemented, so we only save downloaded
3939
data via this `Uploader` to the local Gitea instance. Other uploaders are not supported at this time.
4040

41-
You can find these interfaces in [uploader.go](https://github.com/go-gitea/gitea/blob/main/modules/migrations/base/uploader.go).
41+
You can find these interfaces in [uploader.go](https://github.com/go-gitea/gitea/blob/main/modules/migration/uploader.go).

docs/content/doc/developers/migrations.zh-tw.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ menu:
1818
完整的遷移從 Gitea 1.9.0 開始提供。它定義了兩個介面用來從其它 Git 託管平臺遷移儲存庫資料到 Gitea,未來或許會提供遷移到其它 git 託管平臺。
1919
目前已實作了從 Github, Gitlab 和其它 Gitea 遷移資料。
2020

21-
Gitea 定義了一些基本物件於套件 [modules/migrations/base](https://github.com/go-gitea/gitea/tree/master/modules/migrations/base)
21+
Gitea 定義了一些基本物件於套件 [modules/migration](https://github.com/go-gitea/gitea/tree/master/modules/migration)
2222
分別是 `Repository`, `Milestone`, `Release`, `ReleaseAsset`, `Label`, `Issue`, `Comment`, `PullRequest`, `Reaction`, `Review`, `ReviewComment`
2323

2424
## Downloader 介面
@@ -29,11 +29,11 @@ Gitea 定義了一些基本物件於套件 [modules/migrations/base](https://git
2929
- 您必須實作一個 `DownloaderFactory`,它用來偵測 URL 是否符合並建立上述的 `Downloader`
3030
- 您需要在 `init()` 透過 `RegisterDownloaderFactory` 來註冊 `DownloaderFactory`
3131

32-
您可以在 [downloader.go](https://github.com/go-gitea/gitea/blob/master/modules/migrations/base/downloader.go) 中找到這些介面。
32+
您可以在 [downloader.go](https://github.com/go-gitea/gitea/blob/master/modules/migration/downloader.go) 中找到這些介面。
3333

3434
## Uploader 介面
3535

3636
目前只有 `GiteaLocalUploader` 被實作出來,所以我們只能通過 `Uploader` 儲存已下載的資料到本地的 Gitea 實例。
3737
目前尚未支援其它 Uploader。
3838

39-
您可以在 [uploader.go](https://github.com/go-gitea/gitea/blob/master/modules/migrations/base/uploader.go) 中找到這些介面。
39+
您可以在 [uploader.go](https://github.com/go-gitea/gitea/blob/master/modules/migration/uploader.go) 中找到這些介面。

0 commit comments

Comments
 (0)