Skip to content

Commit 79791ba

Browse files
authored
Fix typos in docs/content (#18215)
1 parent de578bf commit 79791ba

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
313313
- `PORT_TO_REDIRECT`: **80**: Port for the http redirection service to listen on. Used when `REDIRECT_OTHER_PORT` is true.
314314
- `SSL_MIN_VERSION`: **TLSv1.2**: Set the minimum version of ssl support.
315315
- `SSL_MAX_VERSION`: **\<empty\>**: Set the maximum version of ssl support.
316-
- `SSL_CURVE_PREFERENCES`: **X25519,P256**: Set the prefered curves,
316+
- `SSL_CURVE_PREFERENCES`: **X25519,P256**: Set the preferred curves,
317317
- `SSL_CIPHER_SUITES`: **ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305**: Set the preferred cipher suites.
318318
- If there is not hardware support for AES suites by default the cha cha suites will be preferred over the AES suites
319319
- supported suites as of go 1.17 are:

docs/content/doc/developers/guidelines-backend.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ To maintain understandable code and avoid circular dependencies it is important
4343
- `modules/git`: Package to interactive with `Git` command line or Gogit package.
4444
- `public`: Compiled frontend files (javascript, images, css, etc.)
4545
- `routers`: Handling of server requests. As it uses other Gitea packages to serve the request, other packages (models, modules or services) shall not depend on routers.
46-
- `routers/api` Conatins routers for `/api/v1` aims to handle RESTful API requests.
47-
- `routers/install` Could only reponse when system is INSTALL mode.
46+
- `routers/api` Contains routers for `/api/v1` aims to handle RESTful API requests.
47+
- `routers/install` Could only respond when system is in INSTALL mode (INSTALL_LOCK=false).
4848
- `routers/private` will only be invoked by internal sub commands, especially `serv` and `hooks`.
4949
- `routers/web` will handle HTTP requests from web browsers or Git SMART HTTP protocols.
5050
- `services`: Support functions for common routing operations or command executions. Uses `models` and `modules` to handle the requests.
@@ -103,7 +103,7 @@ i.e. `servcies/user`, `models/repository`.
103103

104104
### Import Alias
105105

106-
Since there are many package levels and sub packages, so you will find `modules/user`, `models/user`, `services/user`. When these packages are import into one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So we recommand to always use import alias. To differ from package variables which are commonly use camelCase, just use **snake_case** as import package alias.
106+
Since there are some packages which use the same package name, it is possible that you find packages like `modules/user`, `models/user`, and `services/user`. When these packages are imported in one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So, we always recommend to use import aliases. To differ from package variables which are commonly in camelCase, just use **snake_case** for import aliases.
107107
i.e. `import user_service "code.gitea.io/gitea/services/user"`
108108

109109
### Future Tasks

docs/content/doc/installation/with-docker.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ In the next step a file named `/app/gitea/gitea` (with executable permissions) n
337337
ssh -p 2222 -o StrictHostKeyChecking=no [email protected] "SSH_ORIGINAL_COMMAND=\"$SSH_ORIGINAL_COMMAND\" $0 $@"
338338
```
339339

340-
Here you should also make sure that you've set the permisson of `/app/gitea/gitea` correctly:
340+
Here you should also make sure that you've set the permission of `/app/gitea/gitea` correctly:
341341

342342
```bash
343343
sudo chmod +x /app/gitea/gitea

docs/content/doc/upgrade/from-gogs.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Upgrade to [`gitea 1.6.4`](https://dl.gitea.io/gitea/1.6.4/) first. Download the
8181
the destination platform from the [downloads page](https://dl.gitea.io/gitea/1.6.4/) and replace the binary.
8282
Run Gitea at least once and check that everything works as expected.
8383

84-
Then repeat the procedure, but this time using the [lastest release](https://dl.gitea.io/gitea/{{< version >}}/).
84+
Then repeat the procedure, but this time using the [latest release](https://dl.gitea.io/gitea/{{< version >}}/).
8585

8686
## Upgrading from a more recent version of Gogs
8787

docs/content/doc/usage/command-line.en-us.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Admin operations:
130130
- `--custom-email-url`: Use a custom Email URL (option for GitHub).
131131
- `--icon-url`: Custom icon URL for OAuth2 login source.
132132
- `--override-local-2fa`: Allow source to override local 2FA. (Optional)
133-
- `--scopes`: Addtional scopes to request for this OAuth2 source. (Optional)
133+
- `--scopes`: Additional scopes to request for this OAuth2 source. (Optional)
134134
- `--required-claim-name`: Claim name that has to be set to allow users to login with this source. (Optional)
135135
- `--required-claim-value`: Claim value that has to be set to allow users to login with this source. (Optional)
136136
- `--group-claim-name`: Claim name providing group names for this source. (Optional)
@@ -153,7 +153,7 @@ Admin operations:
153153
- `--custom-email-url`: Use a custom Email URL (option for GitHub).
154154
- `--icon-url`: Custom icon URL for OAuth2 login source.
155155
- `--override-local-2fa`: Allow source to override local 2FA. (Optional)
156-
- `--scopes`: Addtional scopes to request for this OAuth2 source.
156+
- `--scopes`: Additional scopes to request for this OAuth2 source.
157157
- `--required-claim-name`: Claim name that has to be set to allow users to login with this source. (Optional)
158158
- `--required-claim-value`: Claim value that has to be set to allow users to login with this source. (Optional)
159159
- `--group-claim-name`: Claim name providing group names for this source. (Optional)

docs/content/doc/usage/reverse-proxies.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ backend gitea
312312
server localhost:3000 check
313313
```
314314

315-
If you redirect the http content to https, the configuration work the same way, just remember that the connexion between HAProxy and Gitea will be done via http so you do not have to enable https in Gitea's configuration.
315+
If you redirect the http content to https, the configuration work the same way, just remember that the connection between HAProxy and Gitea will be done via http so you do not have to enable https in Gitea's configuration.
316316

317317
## HAProxy with a sub-path
318318

0 commit comments

Comments
 (0)