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 ab5db5a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,16 @@ 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 ab5db5a

Please sign in to comment.