68 lines
1.8 KiB
Python
68 lines
1.8 KiB
Python
# 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
|
|
|
|
import os
|
|
import sys
|
|
import tomllib
|
|
|
|
sys.path.insert(0, os.path.abspath("."))
|
|
sys.path.insert(0, os.path.abspath(".."))
|
|
sys.path.insert(0, os.path.abspath("../src"))
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
project = "pyqt-liquidglass"
|
|
copyright = "2025, h"
|
|
author = "h"
|
|
release = tomllib.load(open("../pyproject.toml", "rb"))["project"]["version"]
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
extensions = [
|
|
"sphinx.ext.autodoc",
|
|
"sphinx.ext.viewcode",
|
|
"sphinx.ext.napoleon",
|
|
"sphinx_autodoc_typehints",
|
|
]
|
|
|
|
templates_path = ["_templates"]
|
|
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
|
|
|
|
autodoc_mock_imports = [
|
|
"objc",
|
|
"AppKit",
|
|
"Cocoa",
|
|
"Foundation",
|
|
"Quartz",
|
|
"PyObjCTools",
|
|
"PySide6",
|
|
"PyQt6",
|
|
]
|
|
|
|
autodoc_default_options = {
|
|
"members": True,
|
|
"member-order": "bysource",
|
|
"special-members": "__init__",
|
|
"undoc-members": True,
|
|
"exclude-members": "__weakref__",
|
|
"inherited-members": False,
|
|
}
|
|
|
|
autodoc_typehints = "description"
|
|
typehints_use_signature = True
|
|
typehints_use_signature_return = True
|
|
|
|
autodoc_member_order = "bysource"
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
html_theme = "furo"
|
|
html_static_path = ["_static"]
|
|
html_title = "pyqt-liquidglass"
|
|
html_theme_options = {"sidebar_hide_name": False, "navigation_with_keys": True}
|