Skip to content

Commit 07ef250

Browse files
committed
Bump docs
1 parent 5490a0d commit 07ef250

File tree

10 files changed

+49
-34
lines changed

10 files changed

+49
-34
lines changed

docs/configuration.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ All these variables can be passed to executables as command-line arguments (see
88
|---------------------------|------------------|----------------------------------------------------------------------------------------------------------------------------------------------|
99
| NOTIFICO_DB | :material-check: | Database URL used as persistent data storage. <br/>Notifico supports SQLite, PostgreSQL, MySQL (MariaDB) and their derivatives. |
1010
| NOTIFICO_SECRET_KEY | :material-check: | Secret key, used for various needs. Mainly, for creating JWT tokens. Can be any printable sequence. |
11-
| NOTIFICO_AMQP_URL | :material-check: | AMQP broker URL address. Virtual hosts are currently not supported. **Example**: `amqp://guest:[email protected]` for local RabbitMQ instance. |
12-
| NOTIFICO_HTTP_INGEST_BIND | :material-check: | Local address for [ingest](components.md#ingest) service. |
13-
| NOTIFICO_WEB_BIND | :material-check: | Local address for [web](components.md#web) service. |
14-
| NOTIFICO_USERAPI_BIND | :material-check: | Local address for [userapi](components.md#user-api) service. |
15-
| NOTIFICO_USERAPI_URL | :material-check: | User-facing address for userapi service | |
11+
| NOTIFICO_AMQP | | AMQP broker URL address. Virtual hosts are currently not supported. **Example**: `amqp://guest:[email protected]` for local RabbitMQ instance. |
12+
| NOTIFICO_AMQP_PREFIX | | AMQP queue prefix. |
13+
| NOTIFICO_HTTP_INGEST_BIND | | Local address for [ingest](components.md#ingest) service. |
14+
| NOTIFICO_UI_BIND | | Local address for [web](components.md#web) service. |
15+
| NOTIFICO_PUBLIC_BIND | | Local address for [userapi](components.md#user-api) service. |
16+
| NOTIFICO_PUBLIC_URL | | User-facing address for userapi service |
1617

1718
## Credentials
1819

docs/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ This feature provides flexibility and control over how notifications are handled
1919
Notifications are messages that are sent to users or systems to inform them of events, updates, or actions that require their attention.
2020
Notifico allows you to send notifications through various channels such as email, SMS, and messengers.
2121

22-
### Channels
23-
Channels are the mediums through which notifications are delivered. Notifico supports multiple channels, enabling you to reach your users wherever they are.
24-
You can configure and manage these channels to suit your application's needs.
25-
2622
### Templates
2723
Templates are predefined formats for your notifications. They allow you to maintain consistency in your messaging and save time by reusing common structures.
2824
Notifico supports dynamic content in templates, enabling personalized notifications.

docs/notificox.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,48 @@
1-
# NotificoX
1+
# Notificox
22

33
[![GitHub Release](https://img.shields.io/github/v/release/notificohq/notifico?style=for-the-badge)](https://github.com/notificohq/notifico/releases/latest)
44

5-
NotificoX is a versatile tool designed to send messages to various services, inspired by the popular notification library, [Apprise](https://github.com/caronc/apprise).
5+
Notificox is a versatile tool designed to send messages to various services, inspired by the popular notification library, [Apprise](https://github.com/caronc/apprise).
66
It provides a unified interface to deliver notifications across multiple platforms, making it easier for users to manage and automate their communication needs.
77

8-
With NotificoX, you can send messages to a wide range of channels, including email, SMS, and instant messaging services.
8+
With Notificox, you can send messages to a wide range of channels, including email, SMS, and instant messaging services.
99

1010
This tool is a single dependency-free binary (only libc and SSL library are required), so you can run it anywhere,
11-
for example in CI pipelines.
11+
for example, in CI pipelines.
1212

13-
Some arguments are formatted in [JSON5](https://json5.org/), so they can be entered without numerous escape sequences.
13+
Some arguments are formatted in [JSON5](https://json5.org/), so they can be entered in console without escape sequences.
1414

1515
## Send notification locally
1616
**Usage:**
1717
```shell
18-
notificox send <CREDENTIAL> [CONTACTS]... --template <TEMPLATE>
18+
notificox send <CREDENTIAL> [CONTACTS]... --context <CONTEXT>
1919
```
2020

2121
**Where:**
2222

23-
- TEMPLATE: JSON5-formatted message template object. Template parameters are transport-specific. You can read about template parameters in [Plugins](plugins/core.md) section. Most of the transports require only "body" parameter to be set.
23+
- CONTEXT: JSON5-formatted message context object. Parameters are transport-specific. You can read about template parameters in [Plugins](plugins/core.md) section. Most of the transports require only "body" parameter to be set.
2424
- CREDENTIAL: Transport credential. You can read about transport syntax in [Plugins](plugins/core.md) section.
25-
- CONTACTS: zero or more contacts to send the message. Contact format is transport-specific. Some transports, like Gotify, don't require contacts, as they only use credentials to send.
25+
- CONTACTS: zero or more contacts to send the message. The Contact format is transport-specific. Some transports, like Gotify, don't require contacts, as they only use credentials to send.
2626

2727
This command internally constructs a Notifico [pipeline](pipeline.md) and executes it using the embedded pipeline engine.
2828
This process is fully transparent to end user.
2929

30-
### Example
30+
### Examples
31+
Sending a Telegram message to recipient with chat_id=111579711 using telegram token:
3132
```shell
32-
# Send a Telegram notification to recipient with chat_id=111579711 using telegram token
33-
notificox send --template "{body: 'my notification body'}" \
34-
"telegram:TOKENTOKEN:TOKENTOKENTOKENTOKENTOKENTOKENTOKEN" \
35-
"telegram:111579711"
33+
notificox send "telegram:TOKEN" "telegram:111579711" -c "{body: 'my notification body'}"
34+
```
35+
Sending a Slack message with a PDF file attached:
36+
```shell
37+
notificox send "slack:TOKEN" "slack:CHAT_ID" -c "{body: 'my notification body'}" -a ~/file.pdf
38+
```
39+
Sending a [ntfy.io](plugins/ntfy.md) message with templating enabled:
40+
```shell
41+
notificox send "ntfy:https://ntfy.sh" "ntfy:notifico" -t template.toml -c "{username: 'USER1'}"
42+
43+
== template.toml ==
44+
[parts]
45+
body = "Hello from Notifico! Username: {{username}}"
3646
```
3747

3848
## Trigger an event on remote Notifico Ingest service

docs/plugins/core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717

1818
Where `RECIPIENT` is a recipient entity. See [Recipient](../recipient.md) for more info.
1919

20-
## How this works under hood
20+
#### How this works under the hood
2121
The Pipeline is forked in the runtime, preserving the current pipeline context.
2222
The forked pipelines start from the following step. This step creates a pipeline for every recipient, resulting in `Recipients` pipelines.

docs/plugins/gotify.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
# Gotify
22
- **Contact:** not used
3-
- **Credential:** `gotify:API_URL`
4-
5-
`API_URL` must adhere to the following format: `http(s)://GOTIFY_HOST:PORT/PATH/message?token=TOKEN`. For example: `gotify:http://localhost/message?token=AEC1G7nmPy1vHOy`
6-
7-
**Channel:** `gotify`
3+
- **Credential:** `gotify:http(s)://<GOTIFY_HOST>:<PORT>/<PATH>?token=<TOKEN>` For example: `gotify:http://localhost/?token=AEC1G7nmPy1vHOy`

docs/plugins/ntfy.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Ntfy
2+
- **Contact:** `ntfy:<TOPIC_NAME>`
3+
- **Credential:** `ntfy:<API_URL>`. To use ntfy.io, use `ntfy:https://ntfy.io`
4+
5+
## Template parameters
6+
```toml
7+
[parts]
8+
body = "Template {{ parameter }}"
9+
title = "Title"
10+
```

docs/plugins/pushover.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
- **Credential:** `pusoover:API_TOKEN`
44

55
## Template parameters
6-
```yaml
7-
body: "Template {{ parameter }}" # body of Pushover message
8-
title: "Title" # title, displayed in Push notification
6+
```toml
7+
[parts]
8+
body = "Template {{ parameter }}" # body of Pushover message
9+
title = "Title" # title, displayed in Push notification
910
```
1011

1112
## Steps

docs/plugins/smpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SMPP (Short Message Peer-to-Peer Protocol)
2-
- **Contact:** `mobile_phone:PHONE`
2+
- **Contact:** `tel:PHONE`
33
- **Credential:** `smpp:SYSTEM_ID:PASSWORD@HOST:PORT`
44

55
SMPP is a protocol used by the telecommunications industry for exchanging SMS messages between Short Message Service Centers (SMSC) and External Short Messaging Entities (ESME).

docs/plugins/waba.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# WhatsApp Business
2-
- **Contact:** `mobile_phone:PHONE`
2+
- **Contact:** `tel:PHONE`
33
- **Credential:** `waba:PHONE_ID:TOKEN`

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ nav:
1818
- SMTP (Email): plugins/smtp.md
1919
- SMPP (SMS): plugins/smpp.md
2020
- plugins/gotify.md
21+
- plugins/ntfy.md
2122
- plugins/pushover.md
2223
- plugins/slack.md
2324
- plugins/telegram.md
2425
- plugins/waba.md
2526
- API: api.md
26-
- NotificoX: notificox.md
27+
- notificox.md
2728

2829
plugins:
2930
- swagger-ui-tag

0 commit comments

Comments
 (0)