2023-09-03 11:59:27 +03:00
|
|
|
# Configuration file for the Sphinx documentation builder.
|
|
|
|
#
|
|
|
|
# For the full list of built-in configuration values, see the documentation:
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
|
|
|
|
2023-09-13 20:01:16 +03:00
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
sys.path.insert(0, os.path.abspath(os.curdir)) # for custom extensions
|
|
|
|
|
2023-09-03 11:59:27 +03:00
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
|
|
|
|
project = "Telethon"
|
|
|
|
copyright = "2023, Lonami"
|
|
|
|
author = "Lonami"
|
|
|
|
release = "2.0.0a0"
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
|
2023-09-13 20:01:16 +03:00
|
|
|
extensions = [
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.intersphinx",
|
|
|
|
"sphinx.ext.graphviz",
|
2023-10-08 16:07:18 +03:00
|
|
|
"sphinx.ext.coverage",
|
2023-09-13 20:01:16 +03:00
|
|
|
"roles.tl",
|
|
|
|
]
|
|
|
|
|
|
|
|
intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
|
|
|
|
tl_ref_url = "https://tl.telethon.dev"
|
|
|
|
autodoc_default_options = {
|
|
|
|
"members": True,
|
|
|
|
"undoc-members": True,
|
2023-10-08 16:07:18 +03:00
|
|
|
"show-inheritance": True,
|
2023-09-13 20:01:16 +03:00
|
|
|
}
|
2023-10-08 16:07:18 +03:00
|
|
|
autodoc_typehints = "description"
|
2023-09-13 20:01:16 +03:00
|
|
|
modindex_common_prefix = ["telethon."]
|
|
|
|
graphviz_output_format = "svg"
|
2023-09-03 11:59:27 +03:00
|
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
|
|
|
|
html_theme = "sphinx_rtd_theme"
|
|
|
|
html_static_path = ["_static"]
|
2023-09-30 18:13:24 +03:00
|
|
|
html_css_files = ["custom.css"]
|