-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add support for multipart url fields * fix docs build script * add basic slack service documentation * add basic gotify service documentation * use sub header for url sections * add basic discord documentation * fix renderers url format * fix gotify docs typos * update hangouts service docs * add custom bool output * add basic iftt service documentation * fix empty username url preview * add basic join service documentation * add basic mattermost service documentation * add basic opsgenie service documentation * add basic pushbullet service documentation * add basic pushover service documentation * sort url path fields by index * add basic rocketchat service documentation * add basic telegram service documentation * add basic zulip service documentation * update teams documentation * fix discord test * linting fixes
- Loading branch information
Showing
38 changed files
with
371 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
## URL Format | ||
*smtp://__`username`__:__`password`__@__`host`__:__`port`__/?from=__`fromAddress`__&to=__`recipient1`__[,__`recipient2`__,...]* | ||
|
||
Props can be either supplied using the params argument, or through the URL using `?key=value&key=value` etc. | ||
!!! info "" | ||
smtp://__`username`__:__`password`__@__`host`__:__`port`__/?from=__`fromAddress`__&to=__`recipient1`__[,__`recipient2`__,...] | ||
|
||
--8<-- "docs/services/smtp/config.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,18 @@ | ||
# Gotify | ||
|
||
## URL Format | ||
*gotify://__`gotify-host`__/__`token`__* | ||
|
||
--8<-- "docs/services/gotify/config.md" | ||
|
||
## Examples | ||
|
||
!!! example "Common usage" | ||
|
||
```uri | ||
gotify://gotify.example.com:443/AzyoeNS.D4iJLVa/?title=Great+News&priority=1 | ||
``` | ||
|
||
!!! example "With subpath" | ||
```uri | ||
gotify://example.com:443/path/to/gotify/AzyoeNS.D4iJLVa/?title=Great+News&priority=1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# IFTTT | ||
|
||
## URL Format | ||
*ifttt://__`key`__/?events=__`event1`__[,__`event2`__,...]&value1=__`value1`__&value2=__`value2`__&value3=__`value3`__* | ||
|
||
!!! info "" | ||
ifttt://__`key`__/?events=__`event1`__[,__`event2`__,...]&value1=__`value1`__&value2=__`value2`__&value3=__`value3`__ | ||
|
||
--8<-- "docs/services/ifttt/config.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,21 @@ | ||
# Join | ||
|
||
## URL Format | ||
*join://shoutrrr:__`api-key`__@join/?devices=__`device1`__[,__`device2`__, ...][&icon=__`icon`__][&title=__`title`__]* | ||
|
||
!!! info "" | ||
join://shoutrrr:__`api-key`__@join/?devices=__`device1`__[,__`device2`__, ...][&icon=__`icon`__][&title=__`title`__] | ||
|
||
--8<-- "docs/services/join/config.md" | ||
|
||
## Guide | ||
|
||
1. Go to the [Join Webapp](https://joinjoaomgcd.appspot.com/) | ||
2. Select your device | ||
3. Click **Join API** | ||
4. Your `deviceId` is shown in the top | ||
5. Click **Show** next to `API Key` to see your key | ||
6. Your Shoutrrr URL will then be: | ||
`join://shoutrrr:`__`api-key`__`@join/?devices=`__`deviceId`__ | ||
|
||
!!! note "" | ||
Multiple `deviceId`s can be combined with a `,` (repeat steps 2-4). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
# Pushbullet | ||
|
||
## URL Format | ||
*pushbullet://__`api-token`__[/__`device`__/#__`channel`__/__`email`__]* | ||
|
||
!!! info "" | ||
pushbullet://__`api-token`__[/__`device`__/#__`channel`__/__`email`__] | ||
|
||
--8<-- "docs/services/pushbullet/config.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,33 @@ | ||
# Slack | ||
|
||
The slack notification service uses [Slack Webhook](https://api.slack.com/messaging/webhooks)s to send messages. | ||
Follow the [Getting started with Incoming Webhooks](https://api.slack.com/messaging/webhooks#getting_started) guide and | ||
replace the initial `https://hooks.slack.com/services/` part of the webhook URL with `slack://` to get your Shoutrrr URL. | ||
|
||
*Slack Webhook URL:* | ||
|
||
!!! info "" | ||
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX | ||
|
||
Shoutrrr URL: | ||
|
||
!!! info "" | ||
slack://T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX | ||
|
||
|
||
## URL Format | ||
*slack://[__`botname`__@]__`token-a`__/__`token-b`__/__`token-c`__* | ||
|
||
--8<-- "docs/services/slack/config.md" | ||
|
||
!!! info "Color format" | ||
The format for the `Color` prop follows the [slack docs](https://api.slack.com/reference/messaging/attachments#fields) | ||
but `#` needs to be escaped as `%23` when passed in a URL. | ||
So <span style="background:#ff8000;width:.9em;height:.9em;display:inline-block;vertical-align:middle"></span><code>#ff8000</code> would be `%23ff8000` etc. | ||
|
||
## Examples | ||
|
||
!!! example | ||
All fields set: | ||
```uri | ||
slack://ShoutrrrBot@T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX?color=good&title=Great+News | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
for S in ./pkg/services/*; do | ||
SERVICE=$(basename "$S") | ||
if [[ "$SERVICE" == "standard" ]] || [[ -f "$S" ]]; then | ||
continue | ||
fi | ||
set -e | ||
|
||
function generate_docs() { | ||
SERVICE=$1 | ||
DOCSPATH=./docs/services/$SERVICE | ||
echo -en "Creating docs for \e[96m$SERVICE\e[0m... " | ||
mkdir -p "$DOCSPATH" | ||
go run ./cli docs -f markdown "$SERVICE" > "$DOCSPATH"/config.md | ||
if [ $? ]; then | ||
echo -e "Done!" | ||
fi | ||
} | ||
|
||
if [[ -n "$1" ]]; then | ||
generate_docs "$1" | ||
exit 0 | ||
fi | ||
|
||
for S in ./pkg/services/*; do | ||
SERVICE=$(basename "$S") | ||
if [[ "$SERVICE" == "standard" ]] || [[ -f "$S" ]]; then | ||
continue | ||
fi | ||
generate_docs "$SERVICE" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.