Add documentation metadata for Orbit packages

This commit is contained in:
nandi committed 2026-11-26 20:38:29 -08:00
1 parent 49739fc9f9
commit 28b13e7a96
6 files changed
+84 -4

No files matched your search

+7 -1
View File
@@ -30,6 +30,7 @@ mypkg/
"name": "mytool",
"version": "1.4.0",
"description": "Does a thing",
"documentation": "https://example.com/mytool",
"bin": ["bin/mytool"],
"depends": { "libfoo": "^2.1.0" }
}
@@ -39,9 +40,14 @@ In a channel this becomes `<channel url>/mytool:1.4.0`, plus the `latest` tag:
| Part | Media type |
|---|---|
| config | `application/vnd.latha.orbit.config.v1+json` (the orbit.json) |
| config | `application/vnd.latha.orbit.config.v1+json` (`orbit.json`, with OCI labels for package-page metadata) |
| layer `pkg.tar.gz` | `application/vnd.latha.orbit.layer.v1.tar+gzip` |
The optional `description` and `documentation` fields supply Gitea's **About**
text and **Documentation** link. Use a public or otherwise accessible HTTP(S)
URL for the link. Gitea does not render a bundled README inline, but you can
ship one under `files/share/doc/<name>/README.md`, as the `greet` example does.
Because these are ordinary OCI artifacts, you can sign them with `cosign` or `notation` and attach SBOMs using the registry's own tooling.
## Usage