diff --git a/docs/releases.py b/docs/releases.py index 98563ccd..0c284f0b 100644 --- a/docs/releases.py +++ b/docs/releases.py @@ -58,7 +58,7 @@ with open(DEST / "index.rst", "w") as index: date = datetime.strptime( release["published_at"], "%Y-%m-%dT%H:%M:%SZ" - ).strftime("%b %d, %Y - %H:%M:%S (UTC)") + ).strftime("%b %d, %Y") body = pypandoc.convert_text( release["body"].replace(r"\r\n", "\n"), @@ -67,12 +67,17 @@ with open(DEST / "index.rst", "w") as index: extra_args=["--wrap=none"] ) + tarball_url = release["tarball_url"] + zipball_url = release["zipball_url"] + index.write("- :doc:`{} <{}>`\n".format(title, tag)) tags.append(tag) with open(DEST / "{}.rst".format(tag), "w") as page: page.write("Pyrogram " + tag + "\n" + "=" * (len(tag) + 9) + "\n\n") - page.write("--- *Released on " + str(date) + "*\n\n") + page.write("\t\tReleased on " + str(date) + "\n\n") + page.write("- :download:`Source Code (zip) <{}>`\n".format(zipball_url)) + page.write("- :download:`Source Code (tar.gz) <{}>`\n\n".format(tarball_url)) page.write(name + "\n" + "-" * len(name) + "\n\n") page.write(body + "\n\n") diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 6c3cc1ab..1800a032 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -197,7 +197,7 @@ And here's a good explanation of how, probably, the system works: data-width="100%"> -.. centered:: Join the discussion at `@PyrogramChat `_ +.. centered:: Join the discussion at `@Pyrogram `_ However, you might be right, and your account was deactivated/limited without any good reason. This could happen because of mistakes by either the automatic systems or a moderator. In such cases you can kindly email Telegram at diff --git a/docs/source/index.rst b/docs/source/index.rst index a2e08cd0..0bc175ee 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -50,8 +50,8 @@ How the Documentation is Organized ---------------------------------- Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in -order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant -pages for a quick access. +order using the :guilabel:`Next` button at the end of each page. Here below you can, instead, find a list of the most +relevant pages for a quick access. First Steps ----------- diff --git a/docs/source/start/auth.rst b/docs/source/start/auth.rst index 79264bfa..ca1ddd8f 100644 --- a/docs/source/start/auth.rst +++ b/docs/source/start/auth.rst @@ -39,8 +39,8 @@ keep the session alive, Pyrogram won't ask you again to enter your phone number. .. note:: - The code above does nothing except asking for credentials and keeping the client online, hit ``CTRL+C`` now to stop - your application and keep reading. + The code above does nothing except asking for credentials and keeping the client online, hit :guilabel:`CTRL+C` now + to stop your application and keep reading. Bot Authorization ----------------- diff --git a/pyrogram/client/types/inline_mode/inline_query_result.py b/pyrogram/client/types/inline_mode/inline_query_result.py index 74fe77d3..3fc70885 100644 --- a/pyrogram/client/types/inline_mode/inline_query_result.py +++ b/pyrogram/client/types/inline_mode/inline_query_result.py @@ -42,7 +42,7 @@ from ..object import Object class InlineQueryResult(Object): """One result of an inline query. - Pyrogram currently supports results of the following 20 types: + Pyrogram currently supports results of the following types: - :obj:`InlineQueryResultArticle` """ diff --git a/pyrogram/client/types/input_message_content/input_message_content.py b/pyrogram/client/types/input_message_content/input_message_content.py index 1941ffb5..fe11ef7a 100644 --- a/pyrogram/client/types/input_message_content/input_message_content.py +++ b/pyrogram/client/types/input_message_content/input_message_content.py @@ -26,7 +26,7 @@ from ..object import Object class InputMessageContent(Object): """Content of a message to be sent as a result of an inline query. - Pyrogram currently supports the following 4 types: + Pyrogram currently supports the following types: - :obj:`InputTextMessageContent` """