diff --git a/docs/conf.py b/docs/conf.py index 555f244a..f1c817ae 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -17,7 +17,6 @@ import os import codecs import re -import alabaster _docs_path = os.path.dirname(__file__) _version_path = os.path.abspath(os.path.join(_docs_path, @@ -156,7 +155,7 @@ } # Add any paths that contain custom themes here, relative to this directory. -html_theme_path = [alabaster.get_path()] +html_theme_path = [] # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". diff --git a/docs/index.rst b/docs/index.rst index c9d629b6..129208dd 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -23,7 +23,9 @@ The session object has dict-like interface (operations like Before processing session in web-handler you have to register *session middleware* in :class:`aiohttp.web.Application`. -A trivial usage example:: +A trivial usage example: + +.. code-block:: python import time from aiohttp import web @@ -59,11 +61,11 @@ Available session storages are: For key generation use :meth:`cryptography.fernet.Fernet.generate_key` method. - Requires :term:`cryptography` library:: + Requires :term:`cryptography` library: - .. code:: + .. code-block:: bash - $ pip3 install aiohttp_session[secure] + $ pip3 install aiohttp_session[secure] * :class:`~aiohttp_session.redis_storage.RedisStorage` -- stores JSON-ed data into *redis*, keeping into cookie only redis key