Skip to content

Commit 8151270

Browse files
committed
Update docs
1 parent 6bebe22 commit 8151270

6 files changed

Lines changed: 14 additions & 9 deletions

File tree

docs/releases.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
date = datetime.strptime(
5959
release["published_at"],
6060
"%Y-%m-%dT%H:%M:%SZ"
61-
).strftime("%b %d, %Y - %H:%M:%S (UTC)")
61+
).strftime("%b %d, %Y")
6262

6363
body = pypandoc.convert_text(
6464
release["body"].replace(r"\r\n", "\n"),
@@ -67,12 +67,17 @@
6767
extra_args=["--wrap=none"]
6868
)
6969

70+
tarball_url = release["tarball_url"]
71+
zipball_url = release["zipball_url"]
72+
7073
index.write("- :doc:`{} <{}>`\n".format(title, tag))
7174
tags.append(tag)
7275

7376
with open(DEST / "{}.rst".format(tag), "w") as page:
7477
page.write("Pyrogram " + tag + "\n" + "=" * (len(tag) + 9) + "\n\n")
75-
page.write("--- *Released on " + str(date) + "*\n\n")
78+
page.write("\t\tReleased on " + str(date) + "\n\n")
79+
page.write("- :download:`Source Code (zip) <{}>`\n".format(zipball_url))
80+
page.write("- :download:`Source Code (tar.gz) <{}>`\n\n".format(tarball_url))
7681
page.write(name + "\n" + "-" * len(name) + "\n\n")
7782
page.write(body + "\n\n")
7883

docs/source/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ And here's a good explanation of how, probably, the system works:
197197
data-width="100%">
198198
</script>
199199

200-
.. centered:: Join the discussion at `@PyrogramChat <https://t.me/pyrogramchat>`_
200+
.. centered:: Join the discussion at `@Pyrogram <https://t.me/pyrogram>`_
201201

202202
However, you might be right, and your account was deactivated/limited without any good reason. This could happen because
203203
of mistakes by either the automatic systems or a moderator. In such cases you can kindly email Telegram at

docs/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ How the Documentation is Organized
5050
----------------------------------
5151

5252
Contents are organized into self-contained topics and can be all accessed from the sidebar, or by following them in
53-
order using the Next button at the end of each page. Here below you can, instead, find a list of the most relevant
54-
pages for a quick access.
53+
order using the :guilabel:`Next` button at the end of each page. Here below you can, instead, find a list of the most
54+
relevant pages for a quick access.
5555

5656
First Steps
5757
-----------

docs/source/start/auth.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ keep the session alive, Pyrogram won't ask you again to enter your phone number.
3939

4040
.. note::
4141

42-
The code above does nothing except asking for credentials and keeping the client online, hit ``CTRL+C`` now to stop
43-
your application and keep reading.
42+
The code above does nothing except asking for credentials and keeping the client online, hit :guilabel:`CTRL+C` now
43+
to stop your application and keep reading.
4444

4545
Bot Authorization
4646
-----------------

pyrogram/client/types/inline_mode/inline_query_result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
class InlineQueryResult(Object):
4343
"""One result of an inline query.
4444
45-
Pyrogram currently supports results of the following 20 types:
45+
Pyrogram currently supports results of the following types:
4646
4747
- :obj:`InlineQueryResultArticle`
4848
"""

pyrogram/client/types/input_message_content/input_message_content.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
class InputMessageContent(Object):
2727
"""Content of a message to be sent as a result of an inline query.
2828
29-
Pyrogram currently supports the following 4 types:
29+
Pyrogram currently supports the following types:
3030
3131
- :obj:`InputTextMessageContent`
3232
"""

0 commit comments

Comments
 (0)