|
36 | 36 | 'sphinx.ext.napoleon',
|
37 | 37 | 'sphinx.ext.viewcode',
|
38 | 38 | 'sphinx.ext.githubpages',
|
| 39 | + 'sphinx.ext.intersphinx', |
| 40 | + 'sphinx.ext.autosectionlabel', |
39 | 41 | 'sphinx_autodoc_typehints',
|
| 42 | + 'sphinx.ext.todo', |
40 | 43 | 'myst_parser',
|
41 | 44 | ]
|
42 | 45 |
|
| 46 | +# Intersphinx configuration |
| 47 | +intersphinx_mapping = { |
| 48 | + 'python': ('https://docs.python.org/3', None), |
| 49 | + 'numpy': ('https://numpy.org/doc/stable/', None), |
| 50 | + 'opencv': ('https://docs.opencv.org/4.x/', None), |
| 51 | +} |
| 52 | + |
43 | 53 | # Add any paths that contain templates here, relative to this directory.
|
44 | 54 | templates_path = ['_templates']
|
45 | 55 |
|
|
54 | 64 |
|
55 | 65 | # General information about the project.
|
56 | 66 | project = 'bbox-visualizer'
|
57 |
| -copyright = '2024, Shoumik Sharar Chowdhury' |
| 67 | +copyright = '2025, Shoumik Sharar Chowdhury' |
58 | 68 | author = 'Shoumik Sharar Chowdhury'
|
59 | 69 |
|
60 | 70 | # The version info for the project you're documenting, acts as replacement
|
|
82 | 92 | pygments_style = 'sphinx'
|
83 | 93 |
|
84 | 94 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
85 |
| -todo_include_todos = False |
| 95 | +todo_include_todos = True |
86 | 96 |
|
87 | 97 |
|
88 | 98 | # -- Options for HTML output -------------------------------------------
|
89 | 99 |
|
90 |
| -# The theme to use for HTML and HTML Help pages. See the documentation for |
91 |
| -# a list of builtin themes. |
92 |
| -# |
| 100 | +# The theme to use for HTML and HTML Help pages. |
93 | 101 | html_theme = 'sphinx_rtd_theme'
|
94 | 102 |
|
95 |
| -# Theme options are theme-specific and customize the look and feel of a |
96 |
| -# theme further. For a list of options available for each theme, see the |
97 |
| -# documentation. |
98 |
| -# |
99 |
| -# html_theme_options = {} |
| 103 | +# Theme options are theme-specific and customize the look and feel of a theme |
| 104 | +html_theme_options = { |
| 105 | + 'logo_only': False, |
| 106 | + 'display_version': True, |
| 107 | + 'prev_next_buttons_location': 'bottom', |
| 108 | + 'style_external_links': True, |
| 109 | + 'style_nav_header_background': '#2980B9', |
| 110 | + # Toc options |
| 111 | + 'collapse_navigation': False, |
| 112 | + 'sticky_navigation': True, |
| 113 | + 'navigation_depth': 4, |
| 114 | + 'includehidden': True, |
| 115 | + 'titles_only': False |
| 116 | +} |
100 | 117 |
|
101 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
102 |
| -# relative to this directory. They are copied after the builtin static files, |
103 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
| 118 | +# The name of an image file (relative to this directory) to place at the top |
| 119 | +# of the sidebar. |
| 120 | +# html_logo = "_static/logo.png" # Uncomment and add your logo if you have one |
| 121 | + |
| 122 | +# The name of an image file (within the static path) to use as favicon of the |
| 123 | +# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
| 124 | +# pixels large. |
| 125 | +# html_favicon = "_static/favicon.ico" # Uncomment and add your favicon if you have one |
| 126 | + |
| 127 | +# Add any paths that contain custom static files (such as style sheets) here |
104 | 128 | html_static_path = ['_static']
|
| 129 | +html_css_files = [ |
| 130 | + 'custom.css', |
| 131 | +] |
105 | 132 |
|
106 | 133 | #
|
107 | 134 | autosectionlabel_prefix_document = True
|
|
176 | 203 | 'undoc-members': False,
|
177 | 204 | 'exclude-members': '__weakref__',
|
178 | 205 | 'private-members': False,
|
179 |
| - 'show-inheritance': True |
| 206 | + 'show-inheritance': True, |
| 207 | + 'inherited-members': True |
180 | 208 | }
|
181 | 209 |
|
| 210 | +# Enable todo notes |
| 211 | +todo_include_todos = True |
| 212 | + |
182 | 213 | # Don't show type hints in the signature - they're already in the parameter list
|
183 | 214 | autodoc_typehints = 'description'
|
184 | 215 |
|
|
188 | 219 | # Sort members by source order
|
189 | 220 | autodoc_member_order = 'bysource'
|
190 | 221 |
|
| 222 | +# -- Additional settings --------------------------------------------- |
| 223 | +# If true, show URLs in the documentation |
| 224 | +html_show_sourcelink = True |
| 225 | + |
| 226 | +# -- Napoleon settings ------------------------------------------------ |
| 227 | +napoleon_google_docstring = True |
| 228 | +napoleon_numpy_docstring = True |
| 229 | +napoleon_include_init_with_doc = True |
| 230 | +napoleon_include_private_with_doc = False |
| 231 | +napoleon_include_special_with_doc = True |
| 232 | +napoleon_use_admonition_for_examples = True |
| 233 | +napoleon_use_admonition_for_notes = True |
| 234 | +napoleon_use_admonition_for_references = True |
| 235 | +napoleon_use_ivar = True |
| 236 | +napoleon_use_param = True |
| 237 | +napoleon_use_rtype = True |
| 238 | +napoleon_type_aliases = None |
| 239 | + |
191 | 240 |
|
192 | 241 |
|
0 commit comments