Skip to content

Commit

Permalink
More API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Diptorup Deb committed Feb 24, 2024
1 parent 8ebd262 commit 5fa8a94
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,19 +113,10 @@

# -- Auto API configurations ---------------------------------------------------


# def skip_util_classes(app, what, name, obj, skip, options):
# if what == "module" and "experimental" in name:
# if what == "module" and "decorators" not in name:
# skip = True
# return skip


# def setup(sphinx):
# sphinx.connect("autoapi-skip-member", skip_util_classes)


autoapi_dirs = ["../../numba_dpex/kernel_api"]
autoapi_dirs = [
"../../numba_dpex/kernel_api",
"../../numba_dpex/experimental",
]
autoapi_type = "python"

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


autoapi_prepare_jinja_env = prepare_jinja_env


def skip_member(app, what, name, obj, skip, options):
# skip submodules
if what == "module":
skip = True
return skip


def setup(sphinx):
sphinx.connect("autoapi-skip-member", skip_member)

0 comments on commit 5fa8a94

Please sign in to comment.