43 lines
1.2 KiB
Python
43 lines
1.2 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
|
|
|
|
# -- Project information -----------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
|
|
|
|
import os.path
|
|
import sys
|
|
|
|
project = "ptvp35"
|
|
copyright = "2022, PARRRATE TNV"
|
|
author = "PARRRATE TNV"
|
|
with open("../../setup.py") as f:
|
|
_src = f.read()
|
|
_src = _src[_src.index('version="') + 9 :]
|
|
_src = _src[: _src.index('"')]
|
|
release = _src
|
|
|
|
# -- General configuration ---------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
|
|
|
|
extensions = [
|
|
"sphinx.ext.autodoc",
|
|
]
|
|
|
|
templates_path = ["_templates"]
|
|
exclude_patterns = []
|
|
|
|
|
|
# -- Options for HTML output -------------------------------------------------
|
|
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
|
|
|
|
html_theme = "pydata_sphinx_theme"
|
|
html_theme_options = {
|
|
"navbar_center": [],
|
|
}
|
|
html_static_path = ["_static"]
|
|
|
|
|
|
sys.path.insert(0, os.path.abspath("../.."))
|