Skip to content

Commit d573aa7

Browse files
author
Diptorup Deb
committed
More API docs
1 parent 8309ac1 commit d573aa7

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

docs/source/conf.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -113,19 +113,10 @@
113113

114114
# -- Auto API configurations ---------------------------------------------------
115115

116-
117-
# def skip_util_classes(app, what, name, obj, skip, options):
118-
# if what == "module" and "experimental" in name:
119-
# if what == "module" and "decorators" not in name:
120-
# skip = True
121-
# return skip
122-
123-
124-
# def setup(sphinx):
125-
# sphinx.connect("autoapi-skip-member", skip_util_classes)
126-
127-
128-
autoapi_dirs = ["../../numba_dpex/kernel_api"]
116+
autoapi_dirs = [
117+
"../../numba_dpex/kernel_api",
118+
"../../numba_dpex/experimental",
119+
]
129120
autoapi_type = "python"
130121

131122
autoapi_template_dir = "_templates/autoapi"
@@ -159,3 +150,14 @@ def prepare_jinja_env(jinja_env) -> None:
159150

160151

161152
autoapi_prepare_jinja_env = prepare_jinja_env
153+
154+
155+
def skip_member(app, what, name, obj, skip, options):
156+
# skip submodules
157+
if what == "module":
158+
skip = True
159+
return skip
160+
161+
162+
def setup(sphinx):
163+
sphinx.connect("autoapi-skip-member", skip_member)

0 commit comments

Comments
 (0)