Skip to content

Commit 0a631fa

Browse files
gyermolenkoasvetlov
authored andcommitted
Remove redundant import from sphinx conf (#287)
1 parent d04a506 commit 0a631fa

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

docs/conf.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
import os
1818
import codecs
1919
import re
20-
import alabaster
2120

2221
_docs_path = os.path.dirname(__file__)
2322
_version_path = os.path.abspath(os.path.join(_docs_path,
@@ -156,7 +155,7 @@
156155
}
157156

158157
# Add any paths that contain custom themes here, relative to this directory.
159-
html_theme_path = [alabaster.get_path()]
158+
html_theme_path = []
160159

161160
# The name for this set of Sphinx documents. If None, it defaults to
162161
# "<project> v<release> documentation".

docs/index.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ The session object has dict-like interface (operations like
2323
Before processing session in web-handler you have to register *session
2424
middleware* in :class:`aiohttp.web.Application`.
2525

26-
A trivial usage example::
26+
A trivial usage example:
27+
28+
.. code-block:: python
2729
2830
import time
2931
from aiohttp import web
@@ -59,11 +61,11 @@ Available session storages are:
5961

6062
For key generation use :meth:`cryptography.fernet.Fernet.generate_key` method.
6163

62-
Requires :term:`cryptography` library::
64+
Requires :term:`cryptography` library:
6365

64-
.. code::
66+
.. code-block:: bash
6567
66-
$ pip3 install aiohttp_session[secure]
68+
$ pip3 install aiohttp_session[secure]
6769
6870
* :class:`~aiohttp_session.redis_storage.RedisStorage` -- stores
6971
JSON-ed data into *redis*, keeping into cookie only redis key

0 commit comments

Comments
 (0)