Skip to content

Commit

Permalink
Use autoapi-skip-member
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Nov 8, 2024
1 parent fbff17f commit 0ce430f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,3 +194,15 @@ def get_version():
# Custom config
autodoc_member_order = "bysource"
autoapi_dirs = ["../fido2"]

skip_patterns = ["fido2.hid", "fido2.win_api"]


def skip_submodules(app, what, name, obj, skip, options):
if what == "module" and any(name.startswith(pattern) for pattern in skip_patterns):
skip = True
return skip


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

0 comments on commit 0ce430f

Please sign in to comment.