-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
50 lines (39 loc) · 1.39 KB
/
Copy pathconf.py
File metadata and controls
50 lines (39 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
"""Sphinx configuration for the pyIECWind documentation."""
from __future__ import annotations
import os
import sys
from importlib.metadata import PackageNotFoundError
from importlib.metadata import version as _distribution_version
# Allow autodoc to import the package when building from a source checkout.
sys.path.insert(0, os.path.abspath("../src"))
project = "pyIECWind"
author = "Jae Hoon Seo"
copyright = f"2025, {author}" # noqa: A001 - Sphinx requires this name
try:
release = _distribution_version("pyiecwind")
except PackageNotFoundError: # pragma: no cover - building from an uninstalled tree
release = "0.0.0+unknown"
version = release
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx.ext.mathjax",
"myst_parser", # only to parse the included Markdown CHANGELOG (see changelog.rst)
]
source_suffix = {".rst": "restructuredtext"}
root_doc = "index"
autodoc_typehints = "description"
autodoc_member_order = "bysource"
autoclass_content = "both"
napoleon_numpy_docstring = True
napoleon_google_docstring = False
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable", None),
}
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
html_theme = "sphinx_rtd_theme"
html_title = f"pyIECWind {release}"