Skip to content

Commit 3864397

Browse files
authored
Merge pull request #697 from mosquito/aio-pika-docs
Migrate documentation from RST to Markdown (MyST)
2 parents 6623e03 + f0fd795 commit 3864397

33 files changed

+2375
-2155
lines changed

README.md

Lines changed: 480 additions & 0 deletions
Large diffs are not rendered by default.

README.rst

Lines changed: 0 additions & 536 deletions
This file was deleted.

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# ONLY FOR ReadTheDocs
22
autodoc
33
furo
4+
myst-parser
5+
sphinx-design

docs/source/apidoc.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# API Reference
2+
3+
```{automodule} aio_pika
4+
:members:
5+
```
6+
7+
```{autoclass} aio_pika.patterns.base
8+
:members:
9+
```
10+
11+
```{autoclass} aio_pika.patterns.Master
12+
:members:
13+
```
14+
15+
```{autoclass} aio_pika.patterns.Worker
16+
:members:
17+
```
18+
19+
```{autoclass} aio_pika.patterns.RPC
20+
:members:
21+
```

docs/source/apidoc.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
"sphinx.ext.coverage",
4747
"sphinx.ext.viewcode",
4848
"sphinxcontrib.googleanalytics",
49+
"myst_parser",
50+
"sphinx_design",
4951
]
5052

5153
googleanalytics_id = "G-VNYV7TYPS6"
@@ -54,11 +56,13 @@
5456
# Add any paths that contain templates here, relative to this directory.
5557
templates_path = ["_templates"]
5658

57-
# The suffix(es) of source filenames.
58-
# You can specify multiple suffix as a list of string:
59-
#
60-
# source_suffix = ['.rst', '.md']
61-
source_suffix = ".rst"
59+
source_suffix = {
60+
".md": "myst",
61+
}
62+
63+
myst_enable_extensions = [
64+
"colon_fence",
65+
]
6266

6367
# The master toctree document.
6468
master_doc = "index"

docs/source/index.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# aio-pika
2+
3+
[![Coveralls](https://coveralls.io/repos/github/mosquito/aio-pika/badge.svg?branch=master)](https://coveralls.io/github/mosquito/aio-pika)
4+
[![Github Actions](https://github.com/mosquito/aio-pika/workflows/tests/badge.svg)](https://github.com/mosquito/aio-pika/actions?query=workflow%3Atests)
5+
[![Latest Version](https://img.shields.io/pypi/v/aio-pika.svg)](https://pypi.python.org/pypi/aio-pika/)
6+
[![](https://img.shields.io/pypi/wheel/aio-pika.svg)](https://pypi.python.org/pypi/aio-pika/)
7+
[![](https://img.shields.io/pypi/pyversions/aio-pika.svg)](https://pypi.python.org/pypi/aio-pika/)
8+
[![](https://img.shields.io/pypi/l/aio-pika.svg)](https://pypi.python.org/pypi/aio-pika/)
9+
10+
**aio-pika** is an async Python client for [RabbitMQ](https://www.rabbitmq.com/)
11+
built on top of [aiormq](http://github.com/mosquito/aiormq/).
12+
It provides an object-oriented API, transparent auto-reconnects with full state
13+
recovery, [publisher confirms](https://www.rabbitmq.com/confirms.html),
14+
[transactions](https://www.rabbitmq.com/semantics.html#tx), and complete
15+
type-hints coverage. Python 3.10+.
16+
17+
```shell
18+
pip install aio-pika
19+
```
20+
21+
## Where to start
22+
23+
Pick a starting point depending on your experience level.
24+
25+
::::{grid} 1 2 2 3
26+
:gutter: 3
27+
28+
:::{grid-item-card} RabbitMQ Tutorial
29+
:link: rabbitmq-tutorial/index
30+
:link-type: doc
31+
32+
New to RabbitMQ? Step-by-step walkthrough of queues, exchanges, routing and more.
33+
:::
34+
35+
:::{grid-item-card} Quick Start
36+
:link: quick-start
37+
:link-type: doc
38+
39+
Working examples: consumer, publisher, transactions, connection pooling.
40+
:::
41+
42+
:::{grid-item-card} API Reference
43+
:link: apidoc
44+
:link-type: doc
45+
46+
Full class and function reference for `aio_pika`.
47+
:::
48+
49+
::::
50+
51+
## More
52+
53+
Ready-made helpers, connection tuning, and the broader ecosystem.
54+
55+
::::{grid} 1 2 2 4
56+
:gutter: 2
57+
58+
:::{grid-item-card} Patterns
59+
:link: patterns
60+
:link-type: doc
61+
:class-card: sd-text-center
62+
63+
Master/Worker & RPC
64+
:::
65+
66+
:::{grid-item-card} URL Parameters
67+
:link: url-parameters
68+
:link-type: doc
69+
:class-card: sd-text-center
70+
71+
AMQP connection options
72+
:::
73+
74+
:::{grid-item-card} See Also
75+
:link: see-also
76+
:link-type: doc
77+
:class-card: sd-text-center
78+
79+
Related projects
80+
:::
81+
82+
:::{grid-item-card} GitHub
83+
:link: https://github.com/mosquito/aio-pika
84+
:link-type: url
85+
:class-card: sd-text-center
86+
87+
Source code & issues
88+
:::
89+
90+
::::
91+
92+
This software follows [Semantic Versioning](http://semver.org/).
93+
94+
```{toctree}
95+
:maxdepth: 3
96+
:hidden:
97+
98+
quick-start
99+
rabbitmq-tutorial/index
100+
patterns
101+
url-parameters
102+
apidoc
103+
see-also
104+
```

0 commit comments

Comments
 (0)