Skip to content

Commit 563945c

Browse files
author
Xinyu Zhou
authored
Refactor docs (#21627)
This patch: - Rename some files( `.md` to `.en-us.md`), fix missed translation copy - Update link which shoud be refer to `../hacking-on-gitea/` instead of `../make/` (outdated) - Update `_redirects`: - redirect `/{zh-cn|fr-fr}/make/` to `../hacking-on-gitea/` - redirect `/zh-cn/third-party-tools/` to `/zh-cn/integrations/` - Delete duplicated/outdated files. - Update menu `weight` of developers.zh-cn.md Signed-off-by: Xinyu Zhou <i@sourcehut.net>
1 parent 8f85a49 commit 563945c

16 files changed

+7
-175
lines changed

Diff for: docs/content/doc/advanced/hacking-on-gitea.zh-cn.md

-43
This file was deleted.

Diff for: docs/content/doc/advanced/make.fr-fr.md

-44
This file was deleted.

Diff for: docs/content/doc/advanced/make.zh-cn.md

-45
This file was deleted.

Diff for: docs/content/doc/advanced/third-party-tools.zh-cn.md

-39
This file was deleted.

Diff for: docs/content/doc/developers.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ draft: false
88
menu:
99
sidebar:
1010
name: "开发者"
11-
weight: 50
11+
weight: 55
1212
identifier: "developers"
1313
---

Diff for: docs/content/doc/installation/from-source.en-us.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ To build from source, the following programs must be present on the system:
8787

8888
- `go` {{< min-go-version >}} or higher, see [here](https://golang.org/dl/)
8989
- `node` {{< min-node-version >}} or higher with `npm`, see [here](https://nodejs.org/en/download/)
90-
- `make`, see <a href='{{< relref "doc/developers/hacking-on-gitea.en-us.md" >}}#installing-make'>here</a>
90+
- `make`, see [here]({{< relref "doc/developers/hacking-on-gitea.en-us.md" >}}#installing-make)
9191

9292
Various [make tasks](https://github.com/go-gitea/gitea/blob/main/Makefile)
9393
are provided to keep the build process as simple as possible.

Diff for: docs/content/doc/installation/from-source.fr-fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ git checkout pr-xyz
5353

5454
## Compilation
5555

56-
Comme nous regroupons déjà toutes les bibliothèques requises pour compiler Gitea, vous pouvez continuer avec le processus de compilation lui-même. Nous fournissons diverses [tâches Make](https://github.com/go-gitea/gitea/blob/master/Makefile) pour rendre le processus de construction aussi simple que possible. <a href='{{< relref "doc/advanced/make.fr-fr.md" >}}'>Voyez ici comment obtenir Make</a>. Selon vos besoins, vous pourrez éventuellement ajouter diverses options de compilation, vous pouvez choisir entre ces options :
56+
Comme nous regroupons déjà toutes les bibliothèques requises pour compiler Gitea, vous pouvez continuer avec le processus de compilation lui-même. Nous fournissons diverses [tâches Make](https://github.com/go-gitea/gitea/blob/master/Makefile) pour rendre le processus de construction aussi simple que possible. [Voyez ici comment obtenir Make]({{< relref "doc/developers/hacking-on-gitea.fr-fr.md" >}}#installing-make). Selon vos besoins, vous pourrez éventuellement ajouter diverses options de compilation, vous pouvez choisir entre ces options :
5757

5858
* `bindata`: Intègre toutes les ressources nécessaires à l'exécution d'une instance de Gitea, ce qui rend un déploiement facile car il n'est pas nécessaire de se préoccuper des fichiers supplémentaires.
5959
* `sqlite sqlite_unlock_notify`: Active la prise en charge d'une base de données [SQLite3](https://sqlite.org/), ceci n'est recommandé que pour les petites installations de Gitea.

Diff for: docs/content/doc/installation/from-source.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ git checkout v{{< version >}}
5454

5555
- `go` {{< min-go-version >}} 或以上版本, 详见[这里](https://golang.google.cn/doc/install)
5656
- `node` {{< min-node-version >}} 或以上版本,并且安装 `npm`, 详见[这里](https://nodejs.org/zh-cn/download/)
57-
- `make`, 详见[这里]({{< relref "make.zh-cn.md" >}})</a>
57+
- `make`, 详见[这里]({{< relref "doc/developers/hacking-on-gitea.zh-cn.md" >}})</a>
5858

5959
各种可用的 [make 任务](https://github.com/go-gitea/gitea/blob/main/Makefile)
6060
可以用来使编译过程更方便。

Diff for: docs/static/_redirects

+3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ https://gitea-docs.netlify.com/* https://docs.gitea.io/:splat 302!
99

1010
/en-us/ci-cd/ /en-us/integrations/ 302!
1111
/en-us/third-party-tools/ /en-us/integrations/ 302!
12+
/zh-cn/third-party-tools/ /zh-cn/integrations/ 302!
1213
/en-us/make/ /en-us/hacking-on-gitea/ 302!
14+
/zh-cn/make/ /zh-cn/hacking-on-gitea/ 302!
15+
/fr-fr/make/ /fr-fr/hacking-on-gitea/ 302!
1316
/en-us/upgrade/ /en-us/upgrade-from-gitea/ 302!
1417
/fr-fr/upgrade/ /fr-fr/upgrade-from-gitea/ 302!
1518
/zh-cn/upgrade/ /zh-cn/upgrade-from-gitea/ 302!

0 commit comments

Comments
 (0)