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/``).
40sys.path.insert(0, os.path.abspath(
'../..'))
45copyright =
'2026, Option C Dev Team'
46author =
'Option C Dev Team'
53 'sphinxcontrib.mermaid',
54 'sphinx.ext.autosectionlabel',
57 'sphinx.ext.autosummary',
58 'sphinx.ext.viewcode',
59 'sphinx.ext.inheritance_diagram',
60 'sphinx.ext.napoleon',
64autosectionlabel_prefix_document =
True
66myst_enable_extensions = [
73myst_heading_anchors = 3
76myst_fence_as_directive = {
"mermaid"}
79templates_path = [
'../_templates']
80exclude_patterns = [
'html',
'doctrees',
'old',
'code_reviews',
'sphinx_docs',
81 'source',
'_sphinx',
'_templates',
'_autosummary',
82 'doxygen_output',
'doxygen_work_dir',
83 'Thumbs.db',
'.DS_Store']
86suppress_warnings = [
'myst.xref_missing',
'myst.header',
'docutils',
91autosummary_generate =
True
93autodoc_default_options = {
95 'undoc-members':
True,
96 'show-inheritance':
True,
101html_theme =
'sphinx_book_theme'
102html_static_path = [
'../_static']
103html_css_files = [
'custom.css']
104html_logo =
'../_static/Option_C_logo.svg'
106html_theme_options = {
107 "repository_url":
"https://github.com/available/soon",
108 "use_repository_button":
True,
109 "use_fullscreen_button":
True,
110 "use_download_button":
True,
111 "home_page_in_toc":
True,