-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.jinja.example
63 lines (47 loc) · 1.79 KB
/
README.jinja.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# {{ pack["pack.yaml"].name | title }} integration pack
> {{ pack["pack.yaml"].description }}
{{ pack["pack.yaml"].author }} <{{ pack["pack.yaml"].email }}>
{% if pack and pack["config.schema.yaml"] -%}
## Configuration
The following options are required to be configured for the pack to work correctly.
| Option | Type | Required | Secret | Description |
|---|---|---|---|---|
{% for key, value in pack["config.schema.yaml"].items() -%}
| `{{ key }}` | {{ value.type }} | {{ value.required }} | {{ value.secret }} | {{ value.description }} |
{% endfor -%}
{% endif -%}
## Actions
{% if actions | length > 0 %}
The pack provides the following actions:
{% for key, value in actions.items() -%}
### {{ value.name }}
_{{ value.description }}_
| Parameter | Type | Required | Secret | Description |
|---|---|---|---|---|
{% for p_key, p_value in value.get("parameters", {}).items() -%}
| `{{ p_key }}` | {{ p_value.type | default("n/a") }} | {{ p_value.required | default("default") }} | {{ p_value.secret | default("default") }} | _{{ p_value.description | default("Unavailable") }}_ |
{% endfor -%}
{% endfor %}
{% else %}
There are no actions available for this pack.
{% endif %}
## Sensors
{% if sensors | length > 0 %}
The following sensors and triggers are provided:
{% for key, value in sensors.items() %}
### Class {{ value.class_name }}
_{{ value.description }}_
{% for trigger in value.trigger_types -%}
| Trigger Name | Description |
|---|---|
| `{{ trigger.name }}` | _{{ trigger.description | default("Unavailable") }}_ |
{% endfor %}
{% endfor %}
{% else %}
There are no sensors available for this pack.
{% endif %}
### Contributors
{% for contributor in pack["pack.yaml"].contributors -%}
- {{ contributor }}
{% endfor %}
<sub>Documentation generated using [pack2md](https://github.com/nzlosh/pack2md)</sub>