Skip to content

Commit d8d69c3

Browse files
committed
# (C) 2026 GoodData Corporation
fix(docs): restore function dedup to avoid page explosion Reverting the function dedup removal — client_class alone generated 182 pages (one per class). Functions keep first-wins dedup since class pages now use relative links to their own child pages. JIRA: trivial risk: nonprod
1 parent e8d9c3f commit d8d69c3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/docs/python_ref_builder.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,13 +368,12 @@ def _pass1(data_root: dict, dir_root: Path, api_ref_root: str, module_import_pat
368368

369369
elif name == "functions":
370370
for func_name in obj:
371-
if func_name.startswith("_"):
371+
if func_name.startswith("_") or func_name in links:
372372
continue
373-
if func_name not in links:
374-
links[func_name] = {
375-
"path": f"{api_ref_root}/{func_name}".lower(),
376-
"kind": "function",
377-
}
373+
links[func_name] = {
374+
"path": f"{api_ref_root}/{func_name}".lower(),
375+
"kind": "function",
376+
}
378377
pages.append(
379378
_PageSpec(
380379
kind="function",

0 commit comments

Comments
 (0)