Metadata
Local metadata are used to display information inside the About page. Metadata are composed by:
- a JSON file named
metadata.json, saved insideimageroot/ui/public/metadata.json - a PNG image for the logo named
module_default_logo.png, saved insideimageroot/ui/src/assets/module_default_logo.png
metadata.json
The JSON format is very similar to the
repository metadata,
without id, logo and versions fields.
Example of metadata.json:
{
"name": "Kickstart",
"upstream_name": "Kickstart 12",
"description": {
"en": "My kickstart module"
},
"categories": ["somecategory"],
"authors": [
{
"name": "Name Surname",
"email": "author@yourmail.org"
}
],
"docs": {
"terms_url": "https://docs.kickstart.com/terms/",
"documentation_url": "https://docs.kickstart.com/",
"bug_url": "https://github.com/NethServer/dev",
"code_url": "https://github.com/author/ns8-kickstart",
"relnotes_url": "https://github.com/author/ns8-kickstart/releases"
},
"source": "ghcr.io/nethserver/kickstart"
}
The categories field contains a list of string. Each string is a category that should describe the application usage scenario.
It could be something like database or collaboration. Always use lower case strings without spaces.
The list of available categories is available in this translation.json
source
file,
under the app_categories object. Change proposals to the category list can be
discussed on the community forum, as explained in development process.
The docs object has the following optional keys:
- The
terms_urlis a link to a web page with important information (e.g. legal/privacy notices, license). It is displayed before installing the application. - The
relnotes_urlis a link to a web page with the application release notes (changes, improvements, and fixes included in each release).
Logo
The logo must be a PNG image and its size should be at least of 128x128 pixels.