-
Notifications
You must be signed in to change notification settings - Fork 3
/
conf.py
105 lines (88 loc) · 3.21 KB
/
conf.py
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
import sys
import os
# 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
project = "EOGLearn"
copyright = "2023, Scott Huberty"
author = "Scott Huberty"
release = "0.1"
# Point Sphinx.ext.autodoc to the our python modules
# In this case, 1 parent directory from this dir
sys.path.insert(0, os.path.abspath("../"))
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
"numpydoc",
"sphinx.ext.autodoc",
"sphinx.ext.intersphinx",
"sphinx.ext.todo",
"sphinx_design",
"sphinx_gallery.gen_gallery",
"sphinxemoji.sphinxemoji",
]
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
# Allows us to use the ..todo:: directive
todo_include_todos = True
# -- Options for intersphinx extension ---------------------------------------
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"pandas": ("https://pandas.pydata.org/docs/", None),
"xarray": ("https://docs.xarray.dev/en/stable/", None),
"mne": ("https://mne.tools/dev", None),
"mne_icalabel": ("https://mne.tools/mne-icalabel/dev", None),
"mne_bids": ("https://mne.tools/mne-bids/dev", None),
"eoglearn": ("https://eoglearn.readthedocs.io/en/latest/", None),
}
# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = "shibuya"
html_static_path = ["_static"]
# Enable numref for automatically numbering Figures, i.e "Fig 1"
numfig = True
# NumPyDoc configuration -----------------------------------------------------
numpydoc_class_members_toctree = False
numpydoc_show_inherited_class_members = {}
numpydoc_attributes_as_param_list = True
numpydoc_xref_param_type = True
numpydoc_validate = True
# Only generate documentation for public members
autodoc_default_flags = ["members", "undoc-members", "inherited-members"]
numpydoc_xref_aliases = {
# Python
"file-like": ":term:`file-like <python:file object>`",
"iterator": ":term:`iterator <python:iterator>`",
"path-like": ":term:`path-like`",
"array-like": ":term:`array_like <numpy:array_like>`",
"Path": ":class:`python:pathlib.Path`",
"bool": ":class:`python:bool`",
"dictionary": ":class:`python:dict`",
}
numpydoc_xref_ignore = {
# words
"instance",
"instances",
"of",
"default",
"shape",
"or",
"with",
"length",
"pair",
"matplotlib",
"optional",
"kwargs",
"in",
"dtype",
"object",
}
# Sphinx Gallery configuration ------------------------------------------------
sphinx_gallery_conf = {
"examples_dirs": "../examples", # path to tutorial python scripts
"gallery_dirs": "auto_examples", # path to where to save gallery generated output
}