mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-28 09:05:13 +00:00
88 lines
2.3 KiB
Python
88 lines
2.3 KiB
Python
# Pyrogram - Telegram MTProto API Client Library for Python
|
|
# Copyright (C) 2017-present Dan <https://github.com/delivrance>
|
|
#
|
|
# This file is part of Pyrogram.
|
|
#
|
|
# Pyrogram is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Lesser General Public License as published
|
|
# by the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Pyrogram is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Lesser General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
import os
|
|
import sys
|
|
from datetime import datetime
|
|
|
|
sys.path.insert(0, os.path.abspath("../.."))
|
|
|
|
from pyrogram import __version__
|
|
|
|
from pygments.styles.friendly import FriendlyStyle
|
|
|
|
FriendlyStyle.background_color = "#f3f2f1"
|
|
|
|
project = "Pyrogram"
|
|
copyright = f"2017-present, Dan"
|
|
author = "Dan"
|
|
|
|
version = ".".join(__version__.split(".")[:-1])
|
|
|
|
extensions = [
|
|
"sphinx.ext.autodoc",
|
|
"sphinx.ext.napoleon",
|
|
"sphinx.ext.autosummary",
|
|
"sphinx_copybutton"
|
|
]
|
|
|
|
master_doc = "index"
|
|
source_suffix = ".rst"
|
|
autodoc_member_order = "bysource"
|
|
|
|
templates_path = ["_resources/templates"]
|
|
html_copy_source = False
|
|
|
|
napoleon_use_rtype = False
|
|
napoleon_use_param = False
|
|
|
|
pygments_style = "friendly"
|
|
|
|
copybutton_prompt_text = "$ "
|
|
|
|
suppress_warnings = ["image.not_readable"]
|
|
|
|
html_title = "Pyrogram Documentation"
|
|
html_theme = "sphinx_rtd_theme"
|
|
html_static_path = ["_resources/static"]
|
|
html_show_sourcelink = True
|
|
html_show_copyright = False
|
|
html_theme_options = {
|
|
"canonical_url": "https://docs.pyrogram.org/",
|
|
"collapse_navigation": True,
|
|
"sticky_navigation": False,
|
|
"logo_only": True,
|
|
"display_version": False,
|
|
"style_external_links": True
|
|
}
|
|
|
|
html_logo = "_resources/static/img/pyrogram.png"
|
|
html_favicon = "_resources/static/img/favicon.ico"
|
|
|
|
latex_engine = "xelatex"
|
|
latex_logo = "_resources/static/img/pyrogram.png"
|
|
|
|
latex_elements = {
|
|
"pointsize": "12pt",
|
|
"fontpkg": r"""
|
|
\setmainfont{Open Sans}
|
|
\setsansfont{Bitter}
|
|
\setmonofont{Ubuntu Mono}
|
|
"""
|
|
}
|