diff --git a/docs/conf.py b/docs/conf.py index 3732e61..34beef9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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)