Skip to content

Commit 5a37e66

Browse files
committed
Applied linter
1 parent 953a761 commit 5a37e66

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

docs/app-specification.md

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
# Arduino App specification
2+
23
This is the specification for the `Arduino App` (from now on called App) format to be used with `arduino-app-cli` and `Arduino App Lab`.
34

45
# Arduino App Folder structure
6+
57
An App is a self-contained folder that includes the following components:
6-
- `app.yaml` (mandatory) the file descriptor of the app in YAML format.
7-
- `sketch` (optional) the folder containing an Arduino [Sketch](https://arduino.github.io/arduino-cli/1.3/sketch-specification/)).
8-
- `python` (optional) the folder containing the Python code.
8+
9+
- `app.yaml` (mandatory) the file descriptor of the app in YAML format.
10+
- `sketch` (optional) the folder containing an Arduino [Sketch](https://arduino.github.io/arduino-cli/1.3/sketch-specification/)).
11+
- `python` (optional) the folder containing the Python code.
912

1013
At least one on `sketch` or `python` folder must be present.
1114
The App must be self-contained (it does not contain references to external files) because this means it can be exported, shared, or zipped easily.
1215

1316
The user-defined apps are saved into `/home/arduino/ArduinoApps` folder.
1417
The builtin-apps are stored into `home/arduino/.local/share/arduino-app-cli/examples` folder.
1518

16-
1719
Example of a `my-app` folder structure
20+
1821
```
1922
my-app/
2023
README.md
@@ -27,25 +30,28 @@ my-app/
2730
```
2831

2932
## `README.md` file
33+
3034
An (optional) readme file in markdown.
3135
The link to local resources must be in the same folder of the app. For example, a png inside the folder `myapp/docs/my-banner.png` can be referenced using ![My App](docs/my-banner.png) syntax.
3236

3337
### `app.yaml` file descriptor
34-
The `app.yaml` (or `app.yml`) is a YAML file that describes an App.
38+
39+
The `app.yaml` (or `app.yml`) is a YAML file that describes an App.
3540

3641
- `name`: (optional) a short name of the app.
3742
- `description`: (optional) a brief description of the app.
38-
- `icon`: (optional) the emoji of the app
39-
- `ports`: (optional) a list of ports to be exposed externally. If not given a random port is opened (if necessary).
43+
- `icon`: (optional) the emoji of the app
44+
- `ports`: (optional) a list of ports to be exposed externally. If not given a random port is opened (if necessary).
4045
- `bricks` (optional) a list of bricks used by the app with its variable definitions.
4146

4247
Example:
48+
4349
```yaml
4450
name: My Arduino App
4551
description: An example app showcasing what you can do
4652
icon: 🍓
4753
ports:
48-
- 7000
54+
- 7000
4955

5056
bricks:
5157
- arduino/dbstorage:
@@ -58,22 +64,25 @@ bricks:
5864
model: yolo
5965
```
6066
61-
6267
### `sketch` sub folder
63-
The content of the `sketch` subfolder contains the Ardiuno skecth.
68+
69+
The content of the `sketch` subfolder contains the Ardiuno skecth.
6470
It must omply with the [Sketch specification](https://arduino.github.io/arduino-cli/1.3/sketch-specification/).
6571

6672
If present it must contain the followign files:
67-
- `sketch.ino`
68-
- `sketch.yaml` that is compliant to the [Sketch project file](https://arduino.github.io/arduino-cli/1.3/sketch-project-file/)
73+
74+
- `sketch.ino`
75+
- `sketch.yaml` that is compliant to the [Sketch project file](https://arduino.github.io/arduino-cli/1.3/sketch-project-file/)
6976

7077
### `python` sub folder
78+
7179
The content of the `python` contains the python code.
7280

7381
If present, it must contain the `main.py` with the python code of the main.
7482
Optionally, a `requirements.txt` with additional python package dependencies to be installed.
7583

7684
### Other
85+
7786
Other sub-folders or files can be added to the app folder.
7887
The reserved folder names are `sketch` and `python`.
7988
The reserved file names are `app.yaml` and `sketch.yaml`.

0 commit comments

Comments
 (0)