2021-01-26 21:20:52 +02:00
|
|
|
import datetime
|
|
|
|
|
|
|
|
|
|
import aiogram
|
|
|
|
|
|
|
|
|
|
project = "aiogram"
|
|
|
|
|
author = "aiogram Team"
|
|
|
|
|
copyright = f"{datetime.date.today().year}, {author}"
|
|
|
|
|
release = aiogram.__version__
|
|
|
|
|
api_version = aiogram.__api_version__
|
|
|
|
|
|
|
|
|
|
templates_path = ["_templates"]
|
|
|
|
|
html_theme = "furo"
|
|
|
|
|
html_logo = "_static/logo.png"
|
|
|
|
|
html_static_path = ["_static"]
|
|
|
|
|
todo_include_todos = True
|
|
|
|
|
pygments_style = "sphinx"
|
|
|
|
|
htmlhelp_basename = project
|
|
|
|
|
html_theme_options = {}
|
|
|
|
|
html_css_files = [
|
|
|
|
|
"stylesheets/extra.css",
|
|
|
|
|
]
|
2021-02-07 18:43:43 +02:00
|
|
|
highlight_language = 'python3'
|
2021-01-26 21:20:52 +02:00
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
|
"sphinx.ext.todo",
|
|
|
|
|
"sphinx.ext.viewcode",
|
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
|
"sphinx.ext.ifconfig",
|
|
|
|
|
"sphinx.ext.intersphinx",
|
|
|
|
|
"sphinx-prompt",
|
|
|
|
|
"sphinx_substitution_extensions",
|
|
|
|
|
"sphinx_copybutton",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
rst_prolog = f"""
|
|
|
|
|
.. |api_version| replace:: {aiogram.__api_version__}
|
2021-02-07 18:43:43 +02:00
|
|
|
|
|
|
|
|
.. role:: pycode(code)
|
|
|
|
|
:language: python3
|
2021-01-26 21:20:52 +02:00
|
|
|
"""
|
|
|
|
|
|
2022-08-14 01:07:52 +03:00
|
|
|
# language = None
|
|
|
|
|
locale_dirs = ["locale/"]
|
|
|
|
|
gettext_compact = False
|
2021-01-26 21:20:52 +02:00
|
|
|
|
|
|
|
|
exclude_patterns = []
|
|
|
|
|
source_suffix = ".rst"
|
|
|
|
|
master_doc = "index"
|
|
|
|
|
|
|
|
|
|
latex_documents = [
|
|
|
|
|
(master_doc, f"{project}.tex", f"{project} Documentation", author, "manual"),
|
|
|
|
|
]
|
|
|
|
|
man_pages = [(master_doc, project, f"{project} Documentation", [author], 1)]
|
|
|
|
|
texinfo_documents = [
|
|
|
|
|
(
|
|
|
|
|
master_doc,
|
|
|
|
|
project,
|
|
|
|
|
f"{project} Documentation",
|
|
|
|
|
author,
|
|
|
|
|
project,
|
|
|
|
|
"Modern and fully asynchronous framework for Telegram Bot API",
|
|
|
|
|
"Miscellaneous",
|
|
|
|
|
),
|
|
|
|
|
]
|