Commit 9baa5cf
authored
Fix generated Weave Python SDK landing page (#1949)
## Description
The root weave module re-exports many classes and functions from
submodules (e.g., Agent from weave.agent.agent). The doc generation
script was filtering these out because their __module__ attribute didn't
match 'weave', resulting in an empty landing page (8 lines instead of
3000+).
This fix updates the filtering logic to include all public members for
the root 'weave' module while maintaining strict filtering for
submodules.
Fixes the python-sdk.mdx being empty/deleted in generated PRs.1 parent c61fa7f commit 9baa5cf
File tree
1 file changed
+4
-1
lines changed- scripts/reference-generation/weave
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
234 | 237 | | |
235 | 238 | | |
236 | 239 | | |
| |||
0 commit comments