-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconf.py
75 lines (50 loc) · 1.85 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
# conf.py
import os
import sys
sys.path.insert(0, os.path.abspath("../"))
# -- Project information -----------------------------------------------------
project = "IKPLS"
copyright = "2023, Ole-Christian Galbo Engstrøm, Erik Schou Dreier, Birthe Møller Jespersen, and Kim Steenstrup Pedersen"
author = "Ole-Christian Galbo Engstrøm"
import ikpls
release = ikpls.__version__
# -- General configuration ---------------------------------------------------
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.autosummary",
"myst_parser",
]
myst_enable_extensions = [
"dollarmath", # Enable dollar sign as a delimiter for math
# Add other MyST extensions you might need
]
myst_heading_anchors = 2
templates_path = ["_templates"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
source_suffix = [".rst", ".md"]
master_doc = "index"
autosummary_generate = True
# -- Options for HTML output -------------------------------------------------
html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
# -- Options for LaTeX output ------------------------------------------------
latex_elements = {}
# -- Extension configuration -------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
# -- Options for autodoc extension -------------------------------------------
autodoc_member_order = "bysource"
autodoc_default_options = {
"members": True,
"undoc-members": True,
"show-inheritance": True,
"private-members": False,
}
def maybe_skip_member(app, what, name, obj, skip, options):
if name in ["set_fit_request", "set_predict_request", "_abc_impl"]:
return True
return skip
def setup(app):
app.connect("autodoc-skip-member", maybe_skip_member)