Fix rendering for publish example
This commit is contained in:
parent
66d30fb42a
commit
c1517e259d
3 changed files with 35 additions and 34 deletions
|
@ -163,11 +163,11 @@ a [title](#message-title), and [tag messages](#tags-emojis) 🥳 🎉. Here's an
|
|||
<figcaption>Urgent notification with tags and title</figcaption>
|
||||
</figure>
|
||||
|
||||
You can also do multi-line messages. Here's an example using a click action, a user action, with an external image attachment and forwarded via email:
|
||||
You can also do multi-line messages. Here's an example using a [click action](#click-action), an [action button](#action-buttons),
|
||||
an [external image attachment](#attach-file-from-a-url) and [email publishing](#e-mail-publishing):
|
||||
|
||||
=== "Command line (curl)"
|
||||
``` sh
|
||||
#!/bin/bash
|
||||
```
|
||||
curl \
|
||||
-H "Click: https://home.nest.com/" \
|
||||
-H "Attach: https://nest.com/view/yAxkasd.jpg" \
|
||||
|
@ -186,7 +186,7 @@ Doggies have been known to ring the doorbell." \
|
|||
--click="https://home.nest.com/" \
|
||||
--attach="https://nest.com/view/yAxkasd.jpg" \
|
||||
--actions="http, Open door, https://api.nest.com/open/yAxkasd, clear=true" \
|
||||
--email="phil@example.com"
|
||||
--email="phil@example.com" \
|
||||
mydoorbell \
|
||||
"There's someone at the door. 🐶
|
||||
|
||||
|
@ -282,16 +282,16 @@ Doggies have been known to ring the doorbell.""".encode('utf-8'),
|
|||
"Attach: https://nest.com/view/yAxkasd.jpg\r\n" .
|
||||
"Actions": "http, Open door, https://api.nest.com/open/yAxkasd, clear=true\r\n" .
|
||||
"Email": "phil@example.com\r\n",
|
||||
'content' => 'There's someone at the door. 🐶
|
||||
'content' => 'There\'s someone at the door. 🐶
|
||||
|
||||
Please check if it's a good boy or a hooman.
|
||||
Please check if it\'s a good boy or a hooman.
|
||||
Doggies have been known to ring the doorbell.'
|
||||
]
|
||||
]));
|
||||
```
|
||||
|
||||
<figure markdown>
|
||||
![priority notification](static/img/complete-notification.jpg){ width=500 }
|
||||
![priority notification](static/img/android-screenshot-notification-multiline.jpg){ width=500 }
|
||||
<figcaption>Notification using a click action, a user action, with an external image attachment and forwarded via email</figcaption>
|
||||
</figure>
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ to [@Joeharrison94](https://github.com/Joeharrison94) for the input.
|
|||
**Documentation:**
|
||||
|
||||
* Improved caddy configuration (no ticket, thanks to @Stnby)
|
||||
* Additional multi-line examples on the [publish page](https://ntfy.sh/docs/publish/) ([#234](https://github.com/binwiederhier/ntfy/pull/234), thanks to [@aTable](https://github.com/aTable))
|
||||
|
||||
**Additional translations:**
|
||||
|
||||
|
|
Before Width: | Height: | Size: 130 KiB After Width: | Height: | Size: 130 KiB |
Loading…
Reference in a new issue