Skip to content

Commit cf63e2c

Browse files
author
Max Zhenzhera
committed
update doc
1 parent 63e9b82 commit cf63e2c

17 files changed

Lines changed: 180 additions & 26 deletions

docs/source/index.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
.. python-FreeDictionaryApi documentation master file, created by
1+
.. python-freeDictionaryAPI documentation master file, created by
22
sphinx-quickstart on Sun May 16 17:56:36 2021.
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to python-FreeDictionaryApi's documentation!
6+
Welcome to python-freeDictionaryAPI's documentation!
77
====================================================
88

99
.. toctree::
10-
:maxdepth: 5
10+
:maxdepth: 2
1111
:caption: Contents:
1212

1313
user_guide/index
@@ -18,5 +18,3 @@ Indices and tables
1818
==================
1919

2020
* :ref:`genindex`
21-
* :ref:`modindex`
22-
* :ref:`search`

docs/source/reference/clients/async_client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ Requires `aiohttp <https://pypi.org/project/aiohttp/2.3.10/>`_ package to be ins
77

88
.. autoclass:: freedictionaryapi.clients.async_client.AsyncDictionaryApiClient
99
:members:
10-
:show-inheritance:
1110
:inherited-members:
11+
:show-inheritance:

docs/source/reference/clients/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Clients
22
=======
33

44
.. toctree::
5+
:maxdepth: 3
56
:caption: Contents
67

78
~implemented_clients

docs/source/reference/clients/~base_clients.rst

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,28 @@ Base clients
22
============
33

44
.. toctree::
5+
:maxdepth: 2
56
:caption: Contents
67

78
base_sync_client
89
base_async_client
910

1011

11-
Here is 2 base API clients, abstract clients that
12-
might be inherited and overridden as you wish:
12+
Here is 2 base API clients. Abstract clients that
13+
might be inherited and overridden:
1314

1415
1. **synchronous** :obj:`freedictionaryapi.clients.BaseDictionaryApiClient`
1516
2. **asynchronous** :obj:`freedictionaryapi.clients.BaseAsyncDictionaryApiClient`
1617

17-
Here is list of the base clients.
1818
All you need to implement your own
1919
client it is to implement one method
20-
of the chosen base
21-
(no matter ``sync`` or ``async`` since both abstracts are prepared):
20+
of the chosen base:
2221

23-
- :obj:`freedictionaryapi.clients.BaseDictionaryApiClient.fetch_api_response`
24-
- :obj:`freedictionaryapi.clients.BaseAsyncDictionaryApiClient.fetch_api_response`
22+
- :meth:`freedictionaryapi.clients.BaseDictionaryApiClient.fetch_api_response`
23+
- :meth:`freedictionaryapi.clients.BaseAsyncDictionaryApiClient.fetch_api_response`
2524

2625
Method`s goals are very simple:
27-
- fetch response that json-ized (something like ``response.json()``);
26+
- fetch response that JSON-ized (something like ``response.json()``);
2827
- get response status code;
2928
- put it in right order in one tuple.
3029

docs/source/reference/clients/~implemented_clients.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Implemented clients
22
===================
33

44
.. toctree::
5+
:maxdepth: 2
56
:caption: Contents
67

78
sync_client

docs/source/reference/errors.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Exceptions
2222
:show-inheritance:
2323

2424

25-
Exceptions` data
26-
^^^^^^^^^^^^^^^^
25+
Exceptions mapping
26+
^^^^^^^^^^^^^^^^^^
2727

2828
.. autodata:: freedictionaryapi.errors.API_ERRORS_MAPPER

docs/source/reference/index.rst

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Reference
22
=========
33

44
.. toctree::
5-
:maxdepth: 5
5+
:maxdepth: 3
66
:caption: Contents:
77

88
clients/index
@@ -11,11 +11,3 @@ Reference
1111
urls
1212
languages
1313
errors
14-
15-
16-
Indices and tables
17-
==================
18-
19-
* :ref:`genindex`
20-
* :ref:`modindex`
21-
* :ref:`search`

docs/source/reference/parsers/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Parsers
22
=======
33

44
.. toctree::
5+
:maxdepth: 3
56
:caption: Contents
67

78
~implemented_parsers

docs/source/reference/parsers/~base_parsers.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Base parsers
22
============
33

44
.. toctree::
5+
:maxdepth: 2
56
:caption: Contents
67

78
base_parser

docs/source/reference/parsers/~implemented_parsers.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ Implemented parsers
22
===================
33

44
.. toctree::
5+
:maxdepth: 2
56
:caption: Contents
67

78
response_parser

0 commit comments

Comments
 (0)