Files
NexQuant/docs/conf.py
T

73 lines
2.2 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
2024-08-09 12:05:45 +08:00
import subprocess
latest_tag = subprocess.check_output(["git", "describe", "--tags", "--abbrev=0"], text=True).strip()
2024-07-15 20:17:12 +08:00
project = "Predix"
copyright = "2025, Predix Team"
author = "Predix Team"
2024-07-15 20:17:12 +08:00
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2024-08-06 09:29:22 +08:00
extensions = ["sphinx.ext.autodoc", "sphinxcontrib.autodoc_pydantic"]
2024-07-15 20:17:12 +08:00
autodoc_member_order = "bysource"
# The suffix of source filenames.
source_suffix = {".rst": "restructuredtext"}
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.
2024-08-09 12:05:45 +08:00
version = latest_tag
release = latest_tag
2024-07-15 20:17:12 +08:00
# 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-09-06 15:39:41 +08:00
html_logo = "_static/logo.png"
2024-07-17 15:00:13 +08:00
html_static_path = ["_static"]
2024-09-06 15:39:41 +08:00
html_favicon = "_static/favicon.ico"
html_theme_options = {
"source_repository": "https://github.com/PredixAI/predix",
"source_branch": "main",
"source_directory": "docs/",
}