Fix API reference docs (#9321)

Do not document members nested within any private component
This commit is contained in:
Eugene Yurtsev 2023-08-16 18:56:54 -04:00 committed by GitHub
parent 84a97d55e1
commit 090411842e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,8 @@ def _load_package_modules(
relative_module_name = file_path.relative_to(package_path)
if relative_module_name.name.startswith("_"):
# Skip if any module part starts with an underscore
if any(part.startswith("_") for part in relative_module_name.parts):
continue
# Get the full namespace of the module