1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-06-03 03:23:40 -04:00

Updates to python docs

This commit is contained in:
James Booth 2016-07-29 01:01:54 +01:00
parent a308f5e4f1
commit 7dd754d344
2 changed files with 23 additions and 16 deletions

View File

@ -109,7 +109,8 @@ todo_include_todos = False
# The theme to use for HTML and HTML Help pages. See the documentation for # The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes. # a list of builtin themes.
html_theme = 'classic' html_theme = 'sphinx_rtd_theme'
# html_theme = 'classic'
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the

View File

@ -9,28 +9,34 @@ def cons_alert():
pass pass
def cons_show(message): def cons_show(message):
""" """Show a message in the console window.
Show a message in the console.\n
*message*: The message to print\n :param message: the message to print
Return: True on success, False on failure :return: ``True`` on success, ``False`` on failure
""" """
pass pass
def cons_show_themed(): def cons_show_themed(group, item, default, message):
"""\n """Show a message in the console, using the specified theme.\n
Show a message in the console, using the specified theme. Themes can be must be specified in ``~/.local/share/profanity/plugin_themes``
| Themes can be must be specified in ~/.local/share/profanity/plugin_themes\n
*group* The group name in the themes file, or NULL\n :param group: the group name in the themes file, or None
*item* The item name within the group, or NULL\n :param item: the item name within the group, or None
*def* A default colour if the theme cannot be found, or NULL\n :param default: default colour if the theme cannot be found, or None
*message* the message to print\n :param message: the message to print
Return: True on success, False on failure :return: ``True`` on success, ``False`` on failure
""" """
pass pass
def cons_bad_cmd_usage():
def cons_bad_cmd_usage(command):
"""Show a message indicating the command has been called incorrectly.
:param command: the command name with leading slash, e.g. ``"/say"``
"""
pass pass
def register_command(): def register_command():
pass pass