mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Conda... Hate RTD and small changes in docs config.
This commit is contained in:
parent
92ab598547
commit
d84d4fce6d
4 changed files with 21 additions and 6 deletions
|
|
@ -11,6 +11,7 @@ wheel>=0.31.0
|
||||||
rethinkdb>=2.3.0
|
rethinkdb>=2.3.0
|
||||||
sphinx>=1.7.3
|
sphinx>=1.7.3
|
||||||
sphinx-rtd-theme>=0.3.0
|
sphinx-rtd-theme>=0.3.0
|
||||||
|
sphinxcontrib-programoutput>=0.11
|
||||||
aresponses>=1.0.0
|
aresponses>=1.0.0
|
||||||
tox>=3.0.0
|
tox>=3.0.0
|
||||||
aiosocksy>=0.1
|
aiosocksy>=0.1
|
||||||
|
|
|
||||||
|
|
@ -17,9 +17,12 @@
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# 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.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
#
|
#
|
||||||
|
import datetime
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
from pip._vendor.pkg_resources import parse_version
|
||||||
|
|
||||||
sys.path.insert(0, os.path.abspath('../..'))
|
sys.path.insert(0, os.path.abspath('../..'))
|
||||||
|
|
||||||
import aiogram
|
import aiogram
|
||||||
|
|
@ -37,6 +40,8 @@ extensions = [
|
||||||
'sphinx.ext.todo',
|
'sphinx.ext.todo',
|
||||||
'sphinx.ext.viewcode',
|
'sphinx.ext.viewcode',
|
||||||
'sphinx.ext.autodoc',
|
'sphinx.ext.autodoc',
|
||||||
|
'sphinx.ext.ifconfig',
|
||||||
|
'sphinxcontrib.programoutput',
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add any paths that contain templates here, relative to this directory.
|
# Add any paths that contain templates here, relative to this directory.
|
||||||
|
|
@ -53,18 +58,26 @@ master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = 'aiogram'
|
project = 'aiogram'
|
||||||
copyright = '2017, Illemius / Alex Root Junior'
|
|
||||||
author = 'Illemius / Alex Root Junior'
|
author = 'Illemius / Alex Root Junior'
|
||||||
|
copyright = f'{datetime.datetime.now().year}, {author}'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
# built documents.
|
# built documents.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
parsed_version = parse_version(aiogram.__version__)
|
||||||
|
|
||||||
# The short X.Y version.
|
# The short X.Y version.
|
||||||
version = aiogram.__version__
|
version = parsed_version.base_version
|
||||||
|
|
||||||
# The full version, including alpha/beta/rc tags.
|
# The full version, including alpha/beta/rc tags.
|
||||||
release = aiogram.__version__
|
release = aiogram.__version__
|
||||||
|
|
||||||
|
releaselevel = 'dev' if parsed_version.dev else 'alpha' \
|
||||||
|
if 'a' in version else 'beta' \
|
||||||
|
if 'b' in version else 'stable'
|
||||||
|
|
||||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||||
# for a list of supported languages.
|
# for a list of supported languages.
|
||||||
#
|
#
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,6 @@ Echo bot
|
||||||
|
|
||||||
|
|
||||||
.. literalinclude:: ../../../examples/echo_bot.py
|
.. literalinclude:: ../../../examples/echo_bot.py
|
||||||
:language: python
|
:caption: echo_bot.py
|
||||||
:linenos:
|
:language: python
|
||||||
|
:linenos:
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ channels:
|
||||||
- conda-forge
|
- conda-forge
|
||||||
dependencies:
|
dependencies:
|
||||||
- python=3.7
|
- python=3.7
|
||||||
- sphinx=1.5.3
|
- sphinx
|
||||||
- sphinx_rtd_theme=0.2.4
|
- sphinx_rtd_theme
|
||||||
- pip
|
- pip
|
||||||
- openssl
|
- openssl
|
||||||
- xz
|
- xz
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue