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"
},
"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.
Logo
The logo must be a PNG image and its size should be at least of 128x128 pixels.