-
Notifications
You must be signed in to change notification settings - Fork 175
Expand file tree
/
Copy pathconf.py
More file actions
76 lines (59 loc) · 2.6 KB
/
conf.py
File metadata and controls
76 lines (59 loc) · 2.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
import os
import sys
sys.path.insert(0, os.path.abspath('../'))
project = 'SimBA'
copyright = '2025, sronilsson'
author = 'sronilsson'
release = '0.0.2'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
myst_enable_extensions = ["html_image"]
myst_url_schemes = ["http", "https"]
extensions = ['sphinx.ext.napoleon',
'sphinx.ext.imgmath',
'sphinx.ext.mathjax',
'sphinx-mathjax-offline',
'sphinx.ext.autodoc',
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'sphinxemoji.sphinxemoji',
#'sphinx_autodoc_typehints',
'sphinx_togglebutton',
'nbsphinx',
'sphinx.ext.intersphinx',
'sphinxcontrib.video',
'sphinx.ext.autosummary',
'sphinxcontrib.youtube']
#mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
mathjax_path = "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
html_favicon = "../simba/assets/icons/readthedocs_logo.png"
html_logo = "../simba/assets/icons/readthedocs_logo.png"
latex_engine = 'xelatex'
latex_elements = {'papersize': 'letterpaper'}
source_suffix = ['.rst']
nbsphinx_execute = 'never'
templates_path = ['_templates']
pygments_style = 'sphinx'
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'sphinx_rtd_theme'
html_static_path = ['_static']
html_css_files = ['css/simba_theme.css', # Include your existing CSS file
'custom.css'] # Include your additional CSS file
html_js_files = [
"https://www.googletagmanager.com/gtag/js?id=G-PEKR9R5J47",
"custom.js"
]
intersphinx_mapping = {
'python': ('https://docs.python.org/3', None),
'shapely': ('https://shapely.readthedocs.io/en/stable/', None),
}
# Mock imports for modules that may not be available during documentation build
autodoc_mock_imports = ['torch', 'ultralytics', 'cupy']