Refactoring and write doc's for Bot class. Split bot to 2 classes

This commit is contained in:
Alex Root Junior 2017-06-04 11:10:22 +03:00
parent efad13156e
commit ba1c473f0c
7 changed files with 1021 additions and 192 deletions

View file

@ -17,9 +17,11 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import os
import sys
sys.path.insert(0, os.path.abspath('../..'))
import aiogram
# -- General configuration ------------------------------------------------
@ -31,8 +33,12 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.todo',
'sphinx.ext.viewcode']
extensions = [
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinx.ext.autodoc',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['templates']
@ -56,9 +62,9 @@ author = 'Illemius / Alex Root Junior'
# built documents.
#
# The short X.Y version.
version = '0.2'
version = '{}.{}'.format(aiogram.major_version, aiogram.minor_version)
# The full version, including alpha/beta/rc tags.
release = '0.2b1'
release = aiogram.__version__
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.