From ec7bf5d614f65f1cf5c540fb9599d047b558ec27 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 25 Jan 2018 13:47:05 +0100 Subject: [PATCH] Enable autosummary ext --- docs/source/conf.py | 3 ++- docs/source/pyrogram/Client.rst | 36 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 52e0f649..4dbc4c85 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -36,7 +36,8 @@ sys.path.insert(0, os.path.abspath('../..')) # ones. extensions = [ 'sphinx.ext.autodoc', - 'sphinx.ext.napoleon' + 'sphinx.ext.napoleon', + 'sphinx.ext.autosummary' ] # Don't show source files on docs diff --git a/docs/source/pyrogram/Client.rst b/docs/source/pyrogram/Client.rst index c0c4e667..dfb5fa27 100644 --- a/docs/source/pyrogram/Client.rst +++ b/docs/source/pyrogram/Client.rst @@ -1,5 +1,41 @@ Client ====== +.. currentmodule:::: pyrogram.Client + .. autoclass:: pyrogram.Client :members: + + **Available methods** + + .. autosummary:: + :nosignatures: + + start + stop + idle + set_update_handler + send + get_me + send_message + forward_messages + send_photo + send_audio + send_document + send_video + send_voice + send_video_note + send_location + send_venue + send_contact + send_chat_action + get_user_profile_photos + edit_message_text + edit_message_caption + delete_messages + join_chat + leave_chat + export_chat_invite_link + enable_cloud_password + change_cloud_password + remove_cloud_password \ No newline at end of file