Option C oc_diagnostics
Loading...
Searching...
No Matches
conf.py
Go to the documentation of this file.
1# Configuration file for the Sphinx documentation builder.
2#
3# Generated by: oct docs --sphinx / oct scaffold
4# Lives in: docs/_sphinx/conf.py
5
6import os
7import sys
8
9# Allow autodoc to import project modules
10# Path: _sphinx/ → docs/ → project_root/
11sys.path.insert(0, os.path.abspath('../..'))
12
13# -- Project information -----------------------------------------------------
14
15project = 'oc_diagnostics'
16copyright = '2026, Option C Dev Team'
17author = 'Option C Dev Team'
18release = '2.0.0'
19
20# -- General configuration ---------------------------------------------------
21
22extensions = [
23 'myst_parser',
24 'sphinxcontrib.mermaid',
25 'sphinx.ext.autosectionlabel',
26 'sphinx_copybutton',
27 'sphinx.ext.autodoc',
28 'sphinx.ext.autosummary',
29 'sphinx.ext.viewcode',
30 'sphinx.ext.inheritance_diagram',
31 'sphinx.ext.napoleon',
32]
33
34# Prefix section labels with document name to avoid duplicates across modules
35autosectionlabel_prefix_document = True
36
37myst_enable_extensions = [
38 'colon_fence',
39 'attrs_inline',
40 'smartquotes',
41 'replacements',
42]
43
44myst_heading_anchors = 3
45
46# Convert ```mermaid fenced blocks to Sphinx mermaid directives
47myst_fence_as_directive = {"mermaid"}
48
49# templates_path and html_static_path are relative to confdir (docs/_sphinx/)
50templates_path = ['../_templates']
51exclude_patterns = ['html', 'doctrees', 'old', 'code_reviews', 'sphinx_docs',
52 'source', '_sphinx', '_templates', '_autosummary',
53 'doxygen_output', 'doxygen_work_dir',
54 'Thumbs.db', '.DS_Store']
55
56# Suppress noisy warnings from markdown files
57suppress_warnings = ['myst.xref_missing', 'myst.header', 'docutils',
58 'autosectionlabel.*']
59
60# -- Autodoc configuration --------------------------------------------------
61
62autosummary_generate = True
63
64autodoc_default_options = {
65 'members': True,
66 'undoc-members': True,
67 'show-inheritance': True,
68}
69
70# -- Options for HTML output -------------------------------------------------
71
72html_theme = 'sphinx_book_theme'
73html_static_path = ['../_static']
74html_css_files = ['custom.css']
75html_logo = '../_static/Option_C_logo.svg'
76
77html_theme_options = {
78 "repository_url": "https://github.com/available/soon",
79 "use_repository_button": True,
80 "use_fullscreen_button": True,
81 "use_download_button": True,
82 "home_page_in_toc": True,
83 "show_toc_level": 2,
84}