-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconf.py
More file actions
91 lines (71 loc) · 2.66 KB
/
conf.py
File metadata and controls
91 lines (71 loc) · 2.66 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# mypy: ignore-errors
# 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
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import sys
from pathlib import Path
sys.path.insert(0, str(Path("../../src").absolute()))
sys.path.insert(0, str(Path("../_ext").absolute()))
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = "component-model"
copyright = "2025, DNV AS. All rights reserved."
author = "Siegfried Eisinger, Jorge Luis Mendez"
# The full version, including alpha/beta/rc tags
release = "0.4.0"
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"myst_parser",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx_argparse_cli",
"sphinx.ext.mathjax",
"sphinx.ext.autosummary",
"sphinx.ext.todo",
"sphinxcontrib.mermaid",
"get_from_code",
"spec",
"sphinx.ext.graphviz",
"sphinx.ext.inheritance_diagram",
# "sphinx.ext.autosectionlabel",
]
# Extenstion for myst_parser
myst_enable_extensions = [
"dollarmath",
"attrs_inline",
]
# The file extensions of source files.
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = []
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_title = f"component-model {release}"
html_theme = "furo"
html_static_path = ["_static"]
html_logo = "_static/component_model.svg"
autodoc_default_options = {
"member-order": "groupwise",
"undoc-members": True,
"exclude-members": "__weakref__",
}
autodoc_preserve_defaults = True
myst_heading_anchors = 3
todo_include_todos = True
spec_include_specs = True
# add markdown mermaid support
myst_fence_as_directive = ["mermaid"]