docs: update diff format

This commit is contained in:
Bo-Yi Wu 2019-10-19 10:23:22 +08:00
parent f529160760
commit 75ffa6ef7b

14
DOCS.md
View File

@ -1,5 +1,5 @@
--- ---
date: 2017-01-08T00:00:00+00:00 date: 2019-10-19T00:00:00+00:00
title: Telegram title: Telegram
author: appleboy author: appleboy
tags: [ notifications, chat ] tags: [ notifications, chat ]
@ -11,7 +11,7 @@ image: appleboy/drone-telegram
The Telegram plugin posts build status messages to your account. The below pipeline configuration demonstrates simple usage: The Telegram plugin posts build status messages to your account. The below pipeline configuration demonstrates simple usage:
```yaml ```yaml
- name: send notification - name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -21,6 +21,7 @@ The Telegram plugin posts build status messages to your account. The below pipel
Example configuration with photo message: Example configuration with photo message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -33,6 +34,7 @@ Example configuration with photo message:
Example configuration with document message: Example configuration with document message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -45,6 +47,7 @@ Example configuration with document message:
Example configuration with sticker message: Example configuration with sticker message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -57,6 +60,7 @@ Example configuration with sticker message:
Example configuration with audio message: Example configuration with audio message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -69,6 +73,7 @@ Example configuration with audio message:
Example configuration with voice message: Example configuration with voice message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -81,6 +86,7 @@ Example configuration with voice message:
Example configuration with location message: Example configuration with location message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -93,6 +99,7 @@ Example configuration with location message:
Example configuration with venue message: Example configuration with venue message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -105,6 +112,7 @@ Example configuration with venue message:
Example configuration with video message: Example configuration with video message:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -117,6 +125,7 @@ Example configuration with video message:
Example configuration with message format: Example configuration with message format:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx
@ -127,6 +136,7 @@ Example configuration with message format:
Example configuration with a custom message template: Example configuration with a custom message template:
```diff ```diff
- name: send telegram notification
image: appleboy/drone-telegram image: appleboy/drone-telegram
settings: settings:
token: xxxxxxxxxx token: xxxxxxxxxx