2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 10:28:00 +00:00
pyrogram/docs/source/conf.py

82 lines
2.1 KiB
Python
Raw Normal View History

2020-03-21 15:43:32 +01:00
# Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2020 Dan <https://github.com/delivrance>
2017-12-30 19:47:18 +01:00
#
2020-03-21 15:43:32 +01:00
# This file is part of Pyrogram.
2017-12-30 19:47:18 +01:00
#
2020-03-21 15:43:32 +01:00
# 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.
2017-12-30 19:47:18 +01:00
#
2020-03-21 15:43:32 +01:00
# 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.
2017-12-30 19:47:18 +01:00
#
2020-03-21 15:43:32 +01:00
# You should have received a copy of the GNU Lesser General Public License
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
2017-12-30 19:47:18 +01:00
import os
import sys
2019-05-23 18:59:29 +02:00
sys.path.insert(0, os.path.abspath("../.."))
2017-12-30 19:47:18 +01:00
2018-04-15 20:56:06 +02:00
from pyrogram import __version__
2017-12-30 19:47:18 +01:00
2019-04-12 15:52:06 +02:00
from pygments.styles.friendly import FriendlyStyle
FriendlyStyle.background_color = "#f3f2f1"
2019-05-23 18:59:29 +02:00
project = "Pyrogram"
2020-03-30 13:03:35 +02:00
copyright = "2017-2020, Dan"
2019-05-23 18:59:29 +02:00
author = "Dan"
2017-12-30 19:47:18 +01:00
extensions = [
2019-05-23 18:59:29 +02:00
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.autosummary",
"sphinx_copybutton"
2017-12-30 19:47:18 +01:00
]
2019-05-23 18:59:29 +02:00
master_doc = "index"
source_suffix = ".rst"
autodoc_member_order = "bysource"
2017-12-30 19:47:18 +01:00
2019-05-23 18:59:29 +02:00
version = __version__
2018-04-15 20:56:06 +02:00
release = version
2017-12-30 19:47:18 +01:00
2019-05-23 18:59:29 +02:00
templates_path = ["_templates"]
2017-12-30 19:47:18 +01:00
2019-05-23 18:59:29 +02:00
napoleon_use_rtype = False
2017-12-30 19:47:18 +01:00
2019-05-23 18:59:29 +02:00
pygments_style = "friendly"
2017-12-30 19:47:18 +01:00
2018-01-15 12:36:03 +01:00
html_title = "Pyrogram Documentation"
2019-05-23 18:59:29 +02:00
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
html_show_sourcelink = True
2018-01-08 05:17:55 +01:00
html_show_copyright = False
html_theme_options = {
2019-05-23 18:59:29 +02:00
"canonical_url": "https://docs.pyrogram.org/",
"collapse_navigation": True,
"sticky_navigation": False,
2019-05-23 18:59:29 +02:00
"logo_only": True,
2019-05-28 16:41:55 +02:00
"display_version": True,
"style_external_links": True
2017-12-30 19:47:18 +01:00
}
2019-05-23 18:59:29 +02:00
html_logo = "_images/pyrogram.png"
html_favicon = "_images/favicon.ico"
2019-06-23 01:31:18 +02:00
latex_engine = "xelatex"
latex_logo = "_images/pyrogram.png"
latex_elements = {
"pointsize": "12pt",
"fontpkg": r"""
2019-08-17 13:12:13 +02:00
\setmainfont{Open Sans}
\setsansfont{Bitter}
2019-06-23 01:31:18 +02:00
\setmonofont{Ubuntu Mono}
"""
}