diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-15 19:44:33 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2019-06-15 21:06:27 +0100 |
commit | 8b62e50eb8bf81a177c4d62484a44b766c6f54a6 (patch) | |
tree | 1d10524d4a28f008dd0a95dfd33afe7773c27345 /deluge/ui/web | |
parent | 5b315e90c508c7fb1123d137c82a3c378e4fb69c (diff) | |
download | deluge-8b62e50eb8bf81a177c4d62484a44b766c6f54a6.tar.gz deluge-8b62e50eb8bf81a177c4d62484a44b766c6f54a6.tar.bz2 deluge-8b62e50eb8bf81a177c4d62484a44b766c6f54a6.zip |
[Docs] Add spellchecking with pyenchant
- Use sphinxcontrib.spelling with custom wordlist.
- Skip the checking of the modules documents as they raise
false-positives.
- Add a setup.py spellcheck_docs command.
- Fix spelling and other issues.
- Add a doc favicon.
Diffstat (limited to 'deluge/ui/web')
-rw-r--r-- | deluge/ui/web/json_api.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index bfacb5870..ffdee342c 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -472,7 +472,7 @@ class WebApi(JSONComponent): The current connection state. :returns: True if the client is connected - :rtype: booleon + :rtype: boolean """ return client.connected() @@ -498,7 +498,7 @@ class WebApi(JSONComponent): :type keys: list :param filter_dict: the filters to apply when selecting torrents. :type filter_dict: dictionary - :returns: The torrent and ui information. + :returns: The torrent and UI information. :rtype: dictionary """ d = Deferred() @@ -659,9 +659,9 @@ class WebApi(JSONComponent): @export def download_torrent_from_url(self, url, cookie=None): """ - Download a torrent file from a url to a temporary directory. + Download a torrent file from a URL to a temporary directory. - :param url: the url of the torrent + :param url: the URL of the torrent :type url: string :returns: the temporary file name of the torrent file :rtype: string @@ -829,7 +829,7 @@ class WebApi(JSONComponent): password (str): The password to login to the daemon with. Returns: - bool: True if succesful, False otherwise. + bool: True if successful, False otherwise. """ return self.hostlist.update_host(host_id, host, port, username, password) @@ -842,7 +842,7 @@ class WebApi(JSONComponent): host_id (str): The host identifying hash. Returns: - bool: True if succesful, False otherwise. + bool: True if successful, False otherwise. """ return self.hostlist.remove_host(host_id) @@ -1002,7 +1002,7 @@ class WebApi(JSONComponent): class WebUtils(JSONComponent): """ - Utility functions for the webui that do not fit in the WebApi. + Utility functions for the Web UI that do not fit in the WebApi. """ def __init__(self): @@ -1014,6 +1014,6 @@ class WebUtils(JSONComponent): Get the available translated languages Returns: - list: of tuples [(lang-id, language-name), ...] + list: of tuples ``[(lang-id, language-name), ...]`` """ return get_languages() |