hipchat: improve documentation (#20445)

Some grammar tweaks and removal of duplicate information such as defaults.
This commit is contained in:
Adam Johnson 2017-01-19 11:15:54 +00:00 committed by John R Barker
commit acdab18ccd

View file

@ -23,9 +23,9 @@ DOCUMENTATION = '''
--- ---
module: hipchat module: hipchat
version_added: "1.2" version_added: "1.2"
short_description: Send a message to hipchat. short_description: Send a message to Hipchat.
description: description:
- Send a message to hipchat - Send a message to a Hipchat room, with options to control the formatting.
options: options:
token: token:
description: description:
@ -37,8 +37,8 @@ options:
required: true required: true
from: from:
description: description:
- Name the message will appear be sent from. max 15 characters. - Name the message will appear to be sent from. Max length is 15
Over 15, will be shorten. characters - above this it will be truncated.
required: false required: false
default: Ansible default: Ansible
msg: msg:
@ -48,19 +48,19 @@ options:
default: null default: null
color: color:
description: description:
- Background color for the message. Default is yellow. - Background color for the message.
required: false required: false
default: yellow default: yellow
choices: [ "yellow", "red", "green", "purple", "gray", "random" ] choices: [ "yellow", "red", "green", "purple", "gray", "random" ]
msg_format: msg_format:
description: description:
- message format. html or text. Default is text. - Message format.
required: false required: false
default: text default: text
choices: [ "text", "html" ] choices: [ "text", "html" ]
notify: notify:
description: description:
- notify or not (change the tab color, play a sound, etc) - If true, a notification will be triggered for users in the room.
required: false required: false
default: 'yes' default: 'yes'
choices: [ "yes", "no" ] choices: [ "yes", "no" ]
@ -74,7 +74,8 @@ options:
version_added: 1.5.1 version_added: 1.5.1
api: api:
description: description:
- API url if using a self-hosted hipchat server. For hipchat api version 2 use C(/v2) path in URI - API url if using a self-hosted hipchat server. For Hipchat API version
2 use the default URI with C(/v2) instead of C(/v1).
required: false required: false
default: 'https://api.hipchat.com/v1' default: 'https://api.hipchat.com/v1'
version_added: 1.6.0 version_added: 1.6.0