# -*- coding: utf-8 -*- # 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 # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information project = "AgentScope" copyright = "2025, Alibaba" author = "Alibaba Tongyi Lab" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration extensions = [ "myst_parser", "sphinx_gallery.gen_gallery", "sphinx.ext.autodoc", "sphinx.ext.viewcode", "sphinx.ext.napoleon", ] myst_enable_extensions = [ "colon_fence", ] sphinx_gallery_conf = { "download_all_examples": False, "examples_dirs": [ "src", ], "gallery_dirs": [ "tutorial", ], "filename_pattern": "src/.*\.py", "example_extensions": [".py"], } templates_path = ["../_templates"] exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] languages = ["en", "zh_CN"] language = "zh_CN" # -- Options for HTML output ------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output html_theme = "furo" html_title = ( "AgentScope" ) html_logo = "../_static/images/logo.svg" html_favicon = "../_static/images/logo.svg" html_static_path = ["../_static"] html_css_files = [ "css/gallery.css", ] html_js_files = [ "language_switch.js", ] html_theme_options = { "footer_icons": [ { "name": "GitHub", "url": "https://github.com/agentscope-ai/agentscope", "html": """ """, "class": "", }, { "name": "Discord", "url": "https://discord.gg/eYMpfnkG8h", "html": """ """, "class": "", }, { "name": "DingTalk", "url": "https://qr.dingtalk.com/action/joingroup?code=v1,k1,OmDlBXpjW+I2vWjKDsjvI9dhcXjGZi3bQiojOq3dlDw=&_dt_no_comment=1&origin=11", "html": """ """, "class": "", }, ], "light_css_variables": { "color-brand-primary": "#2196f3", "color-brand-content": "#2196f3", "color-admonition-background": "#f8f9fa", }, "dark_css_variables": { "color-link": "#2196f3", "color-link--hover": "#2196f3", "color-brand-primary": "#64b5f6", "color-brand-content": "#64b5f6", }, } source_suffix = [".md", ".rst"] # -- Options for API documentation ------------------------------------------- autodoc_member_order = "bysource" autodoc_typehints = "description" autodoc_class_signature = "separated" autodoc_default_options = { "special-members": "__call__", } add_module_names = False python_display_short_literal_types = True def skip_member(app, what, name, obj, skip, options): if name in [ "__call__", "_format", "_format_agent_message", "_format_tool_sequence", ]: return False return skip def setup(app): app.connect("autodoc-skip-member", skip_member)