|
3 | 3 | # For the full list of built-in configuration values, see the documentation: |
4 | 4 | # https://www.sphinx-doc.org/en/master/usage/configuration.html |
5 | 5 |
|
| 6 | +import matplotlib |
| 7 | + |
| 8 | +matplotlib.use("Agg") |
| 9 | +import matplotlib.pyplot as plt |
| 10 | + |
| 11 | +# Ensure readable plots |
| 12 | +matplotlib.rcParams["figure.facecolor"] = "white" |
| 13 | +matplotlib.rcParams["text.color"] = "black" |
| 14 | +matplotlib.rcParams["legend.frameon"] = True |
| 15 | +matplotlib.rcParams["legend.framealpha"] = 0.8 |
| 16 | +matplotlib.rcParams["legend.facecolor"] = "white" |
| 17 | +matplotlib.rcParams["legend.edgecolor"] = "gray" |
| 18 | +matplotlib.rcParams["figure.autolayout"] = True |
| 19 | +matplotlib.rcParams["figure.figsize"] = [10, 6] |
| 20 | +matplotlib.rcParams["savefig.bbox"] = "tight" |
| 21 | + |
| 22 | +from datetime import datetime |
| 23 | + |
6 | 24 | # -- Project information ----------------------------------------------------- |
7 | 25 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information |
8 | 26 |
|
9 | 27 | project = "ros2_medkit" |
10 | | -copyright = "2025, selfpatch" |
11 | | -author = "bburda" |
| 28 | +project_copyright = f"{datetime.now().year}, selfpatch" |
| 29 | +author = "selfpatch Team" |
12 | 30 |
|
13 | 31 | version = "0.1.0" |
14 | 32 | release = "0.1.0" |
|
19 | 37 | extensions = [ |
20 | 38 | "sphinx.ext.autodoc", |
21 | 39 | "sphinx.ext.viewcode", |
| 40 | + "sphinx.ext.intersphinx", |
22 | 41 | "sphinx_needs", |
23 | 42 | "sphinxcontrib.plantuml", |
24 | 43 | ] |
25 | 44 |
|
26 | 45 | templates_path = ["_templates"] |
27 | 46 | exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
28 | 47 |
|
| 48 | +# The suffix(es) of source filenames |
| 49 | +source_suffix = { |
| 50 | + ".rst": "restructuredtext", |
| 51 | +} |
| 52 | + |
| 53 | +# The master toctree document |
| 54 | +master_doc = "index" |
| 55 | + |
| 56 | +# The language for content autogenerated by Sphinx |
| 57 | +language = "en" |
| 58 | + |
29 | 59 | # -- Options for Sphinx-Needs ------------------------------------------------ |
| 60 | +needs_build_json = True |
30 | 61 | needs_types = [ |
31 | 62 | dict( |
32 | 63 | directive="req", |
|
73 | 104 | }, |
74 | 105 | ] |
75 | 106 |
|
76 | | - |
77 | 107 | # -- Options for HTML output ------------------------------------------------- |
78 | 108 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
79 | 109 |
|
80 | 110 | html_theme = "sphinx_rtd_theme" |
81 | 111 | html_static_path = ["_static"] |
82 | 112 | html_css_files = ["custom.css"] |
| 113 | +html_title = f"{project} Documentation" |
83 | 114 |
|
| 115 | +html_theme_options = { |
| 116 | + "prev_next_buttons_location": "bottom", |
| 117 | + "style_external_links": False, |
| 118 | + "collapse_navigation": False, |
| 119 | + "sticky_navigation": True, |
| 120 | + "navigation_depth": 4, |
| 121 | + "includehidden": True, |
| 122 | + "titles_only": False, |
| 123 | +} |
| 124 | + |
| 125 | +# -- Options for intersphinx extension --------------------------------------- |
| 126 | +intersphinx_mapping = { |
| 127 | + "python": ("https://docs.python.org/3", None), |
| 128 | + "sphinx": ("https://www.sphinx-doc.org/en/master", None), |
| 129 | +} |
84 | 130 |
|
85 | 131 | # -- Options for PlantUML ---------------------------------------------------- |
86 | 132 | plantuml = "java -Djava.awt.headless=true -jar /usr/share/plantuml/plantuml.jar" |
87 | | - |
| 133 | +plantuml_output_format = "svg" |
0 commit comments