Skip to content

Commit 0b93049

Browse files
committed
Add content lists on relevant pages
1 parent 2046768 commit 0b93049

35 files changed

+193
-4
lines changed

compiler/docs/template/bound-methods.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ some of the required arguments.
2020
2121
app.run()
2222
23+
.. contents:: Contents
24+
:backlinks: none
25+
:local:
26+
27+
-----
28+
2329
.. currentmodule:: pyrogram
2430

2531
Message

compiler/docs/template/methods.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ This page is about Pyrogram methods. All the methods listed here are bound to a
1313
with app:
1414
app.send_message("haskell", "hi")
1515
16+
.. contents:: Contents
17+
:backlinks: none
18+
:local:
19+
20+
-----
21+
1622
.. currentmodule:: pyrogram.Client
1723

1824
Utilities

compiler/docs/template/types.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ This page is about Pyrogram types. All types listed here are accessible through
1313
**Optional** fields may not exist when irrelevant -- i.e.: they will contain the value of ``None`` and aren't shown
1414
when, for example, using ``print()``.
1515

16-
.. currentmodule:: pyrogram
16+
.. contents:: Contents
17+
:backlinks: none
18+
:local:
19+
20+
-----
1721

22+
.. currentmodule:: pyrogram
1823

1924
Users & Chats
2025
-------------

docs/source/api/client.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ This page is about the Client class, which exposes high-level methods for an eas
1717
with app:
1818
app.send_message("me", "Hi!")
1919
20+
-----
21+
2022
Details
2123
-------
2224

docs/source/api/decorators.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ functions.
2424
2525
app.run()
2626
27+
.. contents:: Contents
28+
:backlinks: none
29+
:local:
30+
31+
-----
32+
2733
.. currentmodule:: pyrogram
2834

2935
Index

docs/source/api/errors.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ follow the usual *PascalCase* convention.
1515
except FloodWait as e:
1616
...
1717
18+
.. contents:: Contents
19+
:backlinks: none
20+
:local:
21+
22+
-----
23+
1824
303 - SeeOther
1925
--------------
2026

docs/source/api/handlers.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ For a much more convenient way of registering callback functions have a look at
2020
2121
app.run()
2222
23+
.. contents:: Contents
24+
:backlinks: none
25+
:local:
26+
27+
-----
28+
2329
.. currentmodule:: pyrogram
2430

2531
Index

docs/source/faq.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ This FAQ page provides answers to common questions about Pyrogram and, to some e
1313
.. contents:: Contents
1414
:backlinks: none
1515
:local:
16-
:depth: 1
16+
17+
-----
1718

1819
What is Pyrogram?
1920
-----------------

docs/source/glossary.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ general. Some words may as well link to dedicated articles in case the topic is
88

99
If you think something interesting could be added here, feel free to propose it by opening a `Feature Request`_.
1010

11+
.. contents:: Contents
12+
:backlinks: none
13+
:local:
14+
15+
-----
1116

1217
Terms
1318
-----

docs/source/intro/install.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ We recommend using the latest versions of both Python 3 and pip.
1111

1212
Pyrogram supports **Python 3** only, starting from version 3.5.3. **PyPy** is supported too.
1313

14+
.. contents:: Contents
15+
:backlinks: none
16+
:local:
17+
18+
-----
19+
1420
Install Pyrogram
1521
----------------
1622

0 commit comments

Comments
 (0)