Skip to content

Commit 184f94e

Browse files
committed
Add public modules to __all__ for pdoc submodule discovery
pdoc uses __all__ to gate which submodules it discovers. Without the module names in __all__, pdoc only rendered the flat symbol list and skipped the submodule pages with their module-level docstrings.
1 parent da7dcb3 commit 184f94e

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

custom-templates/package_init.py.jinja

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ from .ionq_client import IonQClient, __version__
2727
from .types import UNSET, Unset
2828

2929
__all__ = (
30+
"exceptions",
31+
"extensions",
32+
"gates",
33+
"pagination",
34+
"polling",
35+
"session",
3036
"UNSET",
3137
"APIConnectionError",
3238
"APIError",

ionq_core/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@
5555
"aiter_jobs",
5656
"aiter_session_jobs",
5757
"async_wait_for_job",
58+
"exceptions",
59+
"extensions",
60+
"gates",
5861
"gpi2_matrix",
5962
"gpi_matrix",
6063
"iter_jobs",
6164
"iter_session_jobs",
6265
"ms_matrix",
66+
"pagination",
67+
"polling",
68+
"session",
6369
"wait_for_job",
6470
"zz_matrix",
6571
)

0 commit comments

Comments
 (0)