Skip to content

Commit 945effc

Browse files
committed
Add tabs to docs (tgcrypto.rst)
1 parent 0b93049 commit 945effc

3 files changed

Lines changed: 20 additions & 11 deletions

File tree

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sphinx
22
sphinx_rtd_theme
33
sphinx_copybutton
4+
sphinx_tabs
45
pypandoc
56
requests

docs/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"sphinx.ext.autodoc",
3636
"sphinx.ext.napoleon",
3737
"sphinx.ext.autosummary",
38-
"sphinx_copybutton"
38+
"sphinx_copybutton",
39+
"sphinx_tabs.tabs"
3940
]
4041

4142
master_doc = "index"

docs/source/topics/tgcrypto.rst

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ Library specifically written in C for Pyrogram [1]_ as a Python extension.
77
TgCrypto is a replacement for the much slower PyAES and implements the crypto algorithms Telegram requires, namely
88
**AES-IGE 256 bit** (used in MTProto v2.0) and **AES-CTR 256 bit** (used for CDN encrypted files).
99

10-
.. contents:: Contents
11-
:backlinks: none
12-
:local:
13-
14-
-----
15-
1610
Installation
1711
------------
1812

@@ -27,10 +21,23 @@ The reason about being an optional package is that TgCrypto requires some extra
2721
The errors you receive when trying to install TgCrypto are system dependent, but also descriptive enough to understand
2822
what you should do next:
2923

30-
- **Windows**: Install `Visual C++ 2015 Build Tools <https://www.microsoft.com/en-us/download/details.aspx?id=48159>`_.
31-
- **macOS**: A pop-up will automatically ask you to install the command line developer tools.
32-
- **Linux**: Install a proper C compiler (``gcc``, ``clang``) and the Python header files (``python3-dev``).
33-
- **Termux (Android)**: Install ``clang`` package.
24+
.. tabs::
25+
26+
.. tab:: Windows
27+
28+
Install `Visual C++ 2015 Build Tools <https://www.microsoft.com/en-us/download/details.aspx?id=48159>`_.
29+
30+
.. tab:: macOS
31+
32+
A pop-up will automatically ask you to install the command line developer tools.
33+
34+
.. tab:: Linux
35+
36+
Install a proper C compiler (``gcc``, ``clang``) and the Python header files (``python3-dev``).
37+
38+
.. tab:: Termux
39+
40+
Install ``clang`` package.
3441

3542
.. _TgCrypto: https://github.com/pyrogram/tgcrypto
3643

0 commit comments

Comments
 (0)