8Sphinx configuration for the OCT project documentation build.
12- Define project metadata (name, version, author, copyright).
13- Register Sphinx extensions (MyST, Mermaid, autodoc, Napoleon, etc.).
14- Configure HTML theme, static paths, and template paths.
19L2: documentation build configuration
20L3: build configuration details
25- This file is consumed by ``sphinx-build`` and ``oct docs --sphinx``.
26- Paths in ``templates_path`` and ``html_static_path`` are relative to
27 the confdir (``docs/_sphinx/``).
42sys.path.insert(0, os.path.abspath(
'../..'))
47copyright =
'2026, Option C Dev Team'
48author =
'Option C Dev Team'
55 'sphinxcontrib.mermaid',
56 'sphinx.ext.autosectionlabel',
59 'sphinx.ext.autosummary',
60 'sphinx.ext.viewcode',
61 'sphinx.ext.inheritance_diagram',
62 'sphinx.ext.napoleon',
66autosectionlabel_prefix_document =
True
68myst_enable_extensions = [
75myst_heading_anchors = 3
78myst_fence_as_directive = {
"mermaid"}
81templates_path = [
'../_templates']
82exclude_patterns = [
'html',
'doctrees',
'old',
'code_reviews',
'sphinx_docs',
83 'source',
'_sphinx',
'_templates',
'_autosummary',
84 'doxygen_output',
'doxygen_work_dir',
85 'Thumbs.db',
'.DS_Store']
88suppress_warnings = [
'myst.xref_missing',
'myst.header',
'docutils',
93autosummary_generate =
True
95autodoc_default_options = {
97 'undoc-members':
True,
98 'show-inheritance':
True,
101 'ignore-module-all':
True,
110napoleon_use_ivar =
True
114html_theme =
'sphinx_book_theme'
115html_static_path = [
'../_static']
116html_css_files = [
'custom.css']
117html_logo =
'../_static/Option_C_logo.svg'
119html_theme_options = {
120 "repository_url":
"https://github.com/available/soon",
121 "use_repository_button":
True,
122 "use_fullscreen_button":
True,
123 "use_download_button":
True,
124 "home_page_in_toc":
True,