# Pyrofork - Telegram MTProto API Client Library for Python # Copyright (C) 2017-present Dan # Copyright (C) 2022-present Mayuri-Chan # # This file is part of Pyrofork. # # Pyrofork 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. # # Pyrofork 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 Pyrofork. If not, see . import os import sys sys.path.insert(0, os.path.abspath("../..")) from pyrogram import __version__ from pygments.styles.friendly import FriendlyStyle FriendlyStyle.background_color = "#f3f2f1" project = "Pyrofork" copyright = f"2022-present, Mayuri-Chan" author = "Mayuri-Chan" version = ".".join(__version__.split(".")[:-1]) extensions = [ "sphinx.ext.autodoc", "sphinx.ext.napoleon", "sphinx.ext.autosummary", "sphinx.ext.intersphinx", "sphinx_copybutton", "sphinx_immaterial" ] intersphinx_mapping = { "python": ("https://docs.python.org/3", None) } 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 = "Pyrofork Documentation" html_theme = "sphinx_immaterial" html_static_path = ["../resources/static","_static"] html_show_sourcelink = True html_show_copyright = False html_theme_options = { "icon": { "repo": "fontawesome/brands/github", "edit": "material/file-edit-outline", }, "site_url": "https://pyrofork.mayuri.my.id/", "repo_url": "https://github.com/Mayuri-Chan/pyrofork/", "repo_name": "pyrofork", "globaltoc_collapse": True, "features": [ "navigation.expand", "navigation.tabs", "navigation.sections", "navigation.top", "search.share", "toc.follow", "toc.sticky", "content.tabs.link", "announce.dismiss", ], "palette": [ { "media": "(prefers-color-scheme: dark)", "scheme": "slate" } ], "toc_title_is_page_title": True, "version_dropdown": True, "version_info": [ {"version": "main", "title": "main", "aliases": ["latest"]}, {"version": "staging", "title": "staging", "aliases": []}, ], } 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} """ } html_css_files = [ "css/custom.css", "css/all.min.css", ]