Files
NexQuant/docs/conf.py
T

63 lines
1.8 KiB
Python
Raw Normal View History

2024-07-15 20:17:12 +08: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
import importlib.metadata
2024-07-17 15:00:13 +08:00
project = "RDAgent"
copyright = "2024, Microsoft"
author = "Microsoft"
2024-07-15 20:17:12 +08:00
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = []
autodoc_member_order = "bysource"
# The suffix of source filenames.
2024-07-17 15:00:13 +08:00
source_suffix = ".rst"
2024-07-15 20:17:12 +08:00
# The encoding of source files.
2024-07-17 15:00:13 +08:00
source_encoding = "utf-8"
2024-07-15 20:17:12 +08:00
# The main toctree document.
2024-07-17 15:00:13 +08:00
master_doc = "index"
2024-07-15 20:17:12 +08:00
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = importlib.metadata.version("rdagent")
release = importlib.metadata.version("rdagent")
# The language for content autogenerated by Sphinx. Refer to documentation for
# a list of supported languages.
language = "en"
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
2024-07-17 15:00:13 +08:00
exclude_patterns = ["build"]
2024-07-15 20:17:12 +08:00
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
# The name of the Pygments (syntax highlighting) style to use.
2024-07-17 15:00:13 +08:00
pygments_style = "sphinx"
2024-07-15 20:17:12 +08:00
try:
import furo
2024-07-17 15:00:13 +08:00
html_theme = "furo"
2024-07-15 20:17:12 +08:00
html_theme_options = {
"navigation_with_keys": True,
}
except ImportError:
2024-07-17 15:00:13 +08:00
html_theme = "default"
2024-07-15 20:17:12 +08:00
2024-07-17 15:00:13 +08:00
html_static_path = ["_static"]