Document Gitea support in README

This commit is contained in:
Keith Solomon
2026-08-09 23:30:53 -05:00
parent d250f6b89f
commit 5913c8799f
+22 -3
View File
@@ -45,8 +45,9 @@ Create a beautifully structured, developer-first showcase directory for your Wor
1. In the WordPress® admin, go to **Projects → Add New**. 1. In the WordPress® admin, go to **Projects → Add New**.
2. Add your project title, description, and featured image. 2. Add your project title, description, and featured image.
3. Select a **Project Type**: Plugin, Theme, or Pattern. 3. Select a **Project Type**: Plugin, Theme, or Pattern.
4. In the sidebar, paste the GitHub Repository URL (e.g., `https://github.com/username/repo`). 4. In the sidebar, choose **Provider** (GitHub or Gitea) and paste the **Repository URL** (e.g., `https://github.com/username/repo` or `https://codeberg.org/username/repo`).
5. Publish. 5. For Gitea projects, optionally set a **Gitea Base URL** to override the global default.
6. Publish.
### Enable Download Link ### Enable Download Link
@@ -55,7 +56,7 @@ Each project automatically gets a unique download endpoint:
Example: Example:
`https://example.com/download/123` `https://example.com/download/123`
This URL fetches the latest `.zip` release from GitHub and increments the download count. This URL fetches the latest `.zip` release from the project's host (GitHub or Gitea) and increments the download count.
## Settings Overview ## Settings Overview
@@ -64,6 +65,8 @@ Navigate to **Projects → Settings** to configure:
### General Settings ### General Settings
- **GitHub API Token** Recommended for authenticated requests (avoids GitHub rate limits). - **GitHub API Token** Recommended for authenticated requests (avoids GitHub rate limits).
- **Default Gitea Base URL** Used when a Gitea project doesn't specify one. Defaults to `https://codeberg.org`.
- **Gitea API Token** Recommended for authenticated Gitea requests.
- **Telemetry** Toggle to help improve the plugin. - **Telemetry** Toggle to help improve the plugin.
### Templates Settings ### Templates Settings
@@ -102,6 +105,22 @@ To avoid hitting rate limits or improve reliability:
2. Generate a token (no scopes required). 2. Generate a token (no scopes required).
3. Paste it into the settings screen under **GitHub API Token**. 3. Paste it into the settings screen under **GitHub API Token**.
## Connect Your Gitea Repo
To connect a project to a Gitea instance (self-hosted or public):
1. Set **Provider** to **Gitea** in the project editor.
2. Paste the full repository URL into **Repository URL** (e.g., `https://codeberg.org/username/repo`).
3. Optionally override the Gitea base URL for this project (leave blank to use the global default).
4. Make sure the repo has a release with a `.zip` asset, or any tag — the plugin will fall back to the source archive URL.
### Optional: Add a Gitea API Token
To avoid rate limits or improve reliability:
1. In your Gitea instance, go to **Settings → Applications** and generate a token.
2. Paste it into the plugin settings screen under **Gitea API Token**.
## How to Zip the Plugin for GitHub Releases ## How to Zip the Plugin for GitHub Releases
When attaching the plugin to a GitHub release: When attaching the plugin to a GitHub release: