From a77b0937cf1448c36be6ca443994d523d085091c Mon Sep 17 00:00:00 2001 From: Cory Sanin Date: Wed, 5 Nov 2025 17:26:38 +0000 Subject: [PATCH] Corrections for Arch package registry page (#291) pairs nicely with https://github.com/go-gitea/gitea/pull/35825 Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/docs/pulls/291 Reviewed-by: silverwind Co-authored-by: Cory Sanin Co-committed-by: Cory Sanin --- docs/usage/packages/arch.md | 9 +++++---- versioned_docs/version-1.25/usage/packages/arch.md | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/usage/packages/arch.md b/docs/usage/packages/arch.md index 7369f9c9..b15d79dd 100644 --- a/docs/usage/packages/arch.md +++ b/docs/usage/packages/arch.md @@ -36,23 +36,24 @@ pacman-key --lsign-key {key id} Now add the registry configuration to `/etc/pacman.conf`. ```conf -[{owner}.gitea.example.com] +[{repository}] SigLevel = Required -Server = https://gitea.example.com/api/packages/{owner}/arch/{repository}/{architecture} +Server = https://gitea.example.com/api/packages/{owner}/arch/$repo/$arch ``` | Placeholder | Description | | -------------- | ----------- | | `owner` | The owner of the packages. | | `repository` | The repository to use. | -| `architecture` | The architecture to use. | Consult the owners package overview to see what `repository` and `architecture` is available. If the registry is private, provide credentials in the url. You can use a password or a [personal access token](development/api-usage.md#authentication): ``` -Server = https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/arch/{repository}/{architecture} +[{repository}] +SigLevel = Required +Server = https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/arch/$repo/$arch ``` ## Publish a package diff --git a/versioned_docs/version-1.25/usage/packages/arch.md b/versioned_docs/version-1.25/usage/packages/arch.md index 7369f9c9..b15d79dd 100644 --- a/versioned_docs/version-1.25/usage/packages/arch.md +++ b/versioned_docs/version-1.25/usage/packages/arch.md @@ -36,23 +36,24 @@ pacman-key --lsign-key {key id} Now add the registry configuration to `/etc/pacman.conf`. ```conf -[{owner}.gitea.example.com] +[{repository}] SigLevel = Required -Server = https://gitea.example.com/api/packages/{owner}/arch/{repository}/{architecture} +Server = https://gitea.example.com/api/packages/{owner}/arch/$repo/$arch ``` | Placeholder | Description | | -------------- | ----------- | | `owner` | The owner of the packages. | | `repository` | The repository to use. | -| `architecture` | The architecture to use. | Consult the owners package overview to see what `repository` and `architecture` is available. If the registry is private, provide credentials in the url. You can use a password or a [personal access token](development/api-usage.md#authentication): ``` -Server = https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/arch/{repository}/{architecture} +[{repository}] +SigLevel = Required +Server = https://{username}:{your_password_or_token}@gitea.example.com/api/packages/{owner}/arch/$repo/$arch ``` ## Publish a package