| 1 |
# Configuration file for the Sphinx documentation builder. |
| 2 |
# |
| 3 |
# This file only contains a selection of the most common options. For a full |
| 4 |
# list see the documentation: |
| 5 |
# https://www.sphinx-doc.org/en/master/usage/configuration.html |
| 6 |
|
| 7 |
# -- Path setup -------------------------------------------------------------- |
| 8 |
|
| 9 |
# If extensions (or modules to document with autodoc) are in another directory, |
| 10 |
# add these directories to sys.path here. If the directory is relative to the |
| 11 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
| 12 |
# |
| 13 |
import os |
| 14 |
import sys |
| 15 |
from pathlib import Path |
| 16 |
|
| 17 |
sys.path.insert(0, Path().resolve().as_posix()) |
| 18 |
sys.path.insert(0, "../..") |
| 19 |
from ytmusicapi import __version__ |
| 20 |
|
| 21 |
on_rtd = os.environ.get("READTHEDOCS", None) == "True" |
| 22 |
|
| 23 |
# -- Project information ----------------------------------------------------- |
| 24 |
|
| 25 |
project = "ytmusicapi" |
| 26 |
copyright = "2024, sigma67" |
| 27 |
author = "sigma67" |
| 28 |
|
| 29 |
# The full version, including alpha/beta/rc tags |
| 30 |
version = __version__ |
| 31 |
# The full version, including alpha/beta/rc tags. |
| 32 |
release = __version__ |
| 33 |
|
| 34 |
# -- General configuration --------------------------------------------------- |
| 35 |
|
| 36 |
# Add any Sphinx extension module names here, as strings. They can be |
| 37 |
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 38 |
# ones. |
| 39 |
extensions = ["sphinx.ext.autodoc", "sphinx_autodoc_typehints"] |
| 40 |
|
| 41 |
typehints_use_signature = True |
| 42 |
typehints_use_signature_return = True |
| 43 |
|
| 44 |
# The suffix of source filenames. |
| 45 |
source_suffix = ".rst" |
| 46 |
|
| 47 |
# The master toctree document. |
| 48 |
master_doc = "index" |
| 49 |
|
| 50 |
# Add any paths that contain templates here, relative to this directory. |
| 51 |
templates_path = ["_templates"] |
| 52 |
|
| 53 |
# Add any paths that contain custom static files (such as style sheets) here, |
| 54 |
# relative to this directory. They are copied after the builtin static files, |
| 55 |
# so a file named "default.css" will overwrite the builtin "default.css". |
| 56 |
html_static_path = ["_static"] |
| 57 |
html_css_files = [ |
| 58 |
"css/custom.css", |
| 59 |
] |
| 60 |
|
| 61 |
# List of patterns, relative to source directory, that match files and |
| 62 |
# directories to ignore when looking for source files. |
| 63 |
# This pattern also affects html_static_path and html_extra_path. |
| 64 |
# exclude_patterns = [] |
| 65 |
|
| 66 |
html_theme = "sphinx_rtd_theme" |