2024-05-24 13:45:23 -04: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
|
|
|
|
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
|
2024-08-28 12:47:04 -04:00
|
|
|
project = "autogen_core"
|
2024-05-24 13:45:23 -04:00
|
|
|
copyright = "2024, Microsoft"
|
|
|
|
author = "Microsoft"
|
|
|
|
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
|
|
|
|
extensions = [
|
|
|
|
"sphinx.ext.autodoc",
|
|
|
|
"sphinx.ext.autosummary",
|
|
|
|
"sphinx.ext.napoleon",
|
2024-06-03 16:06:04 -04:00
|
|
|
"sphinxcontrib.apidoc",
|
2024-08-06 11:37:11 -07:00
|
|
|
"myst_nb",
|
2024-08-05 12:27:03 -07:00
|
|
|
"sphinx.ext.intersphinx",
|
2024-05-24 13:45:23 -04:00
|
|
|
]
|
|
|
|
|
2024-08-28 12:47:04 -04:00
|
|
|
apidoc_module_dir = "../../src/autogen_core"
|
2024-08-05 12:27:03 -07:00
|
|
|
apidoc_output_dir = "reference"
|
|
|
|
apidoc_template_dir = "_apidoc_templates"
|
2024-05-24 13:45:23 -04:00
|
|
|
apidoc_separate_modules = True
|
|
|
|
apidoc_extra_args = ["--no-toc"]
|
2024-08-05 12:27:03 -07:00
|
|
|
napoleon_custom_sections = [("Returns", "params_style")]
|
2024-08-19 07:06:41 -07:00
|
|
|
apidoc_excluded_paths = ["./application/protos/"]
|
2024-05-24 13:45:23 -04:00
|
|
|
|
|
|
|
templates_path = []
|
2024-08-28 12:47:04 -04:00
|
|
|
exclude_patterns = ["reference/autogen_core.rst"]
|
2024-05-24 13:45:23 -04:00
|
|
|
|
|
|
|
autoclass_content = "init"
|
|
|
|
|
2024-08-06 11:37:11 -07:00
|
|
|
# TODO: incldue all notebooks excluding those requiring remote API access.
|
|
|
|
nb_execution_mode = "off"
|
|
|
|
|
2024-05-24 13:45:23 -04:00
|
|
|
# Guides and tutorials must succeed.
|
|
|
|
nb_execution_raise_on_error = True
|
|
|
|
nb_execution_timeout = 60
|
|
|
|
|
2024-08-07 00:49:28 -07:00
|
|
|
myst_heading_anchors = 5
|
|
|
|
|
2024-05-24 13:45:23 -04:00
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
|
2024-06-12 15:21:20 -04:00
|
|
|
html_title = "AGNext"
|
|
|
|
|
2024-05-24 13:45:23 -04:00
|
|
|
html_theme = "furo"
|
2024-08-07 12:25:27 -04:00
|
|
|
html_static_path = []
|
2024-05-24 13:45:23 -04:00
|
|
|
|
|
|
|
html_theme_options = {
|
2024-09-05 11:24:02 -04:00
|
|
|
"source_repository": "https://github.com/microsoft/agnext",
|
2024-05-24 13:45:23 -04:00
|
|
|
"source_branch": "main",
|
2024-09-05 11:24:02 -04:00
|
|
|
"source_directory": "python/packages/autogen-core/docs/src/",
|
2024-05-24 13:45:23 -04:00
|
|
|
}
|
2024-06-12 17:10:17 -04:00
|
|
|
|
|
|
|
autodoc_default_options = {
|
|
|
|
"members": True,
|
|
|
|
"undoc-members": True,
|
2024-06-27 13:40:12 -04:00
|
|
|
}
|
|
|
|
|
2024-08-05 12:27:03 -07:00
|
|
|
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}
|