You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@resilientdb.apache.org by bi...@apache.org on 2026/03/27 22:20:34 UTC
(incubator-resilientdb) branch master updated: Fixed automated doc generation errors
This is an automated email from the ASF dual-hosted git repository.
bisman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb.git
The following commit(s) were added to refs/heads/master by this push:
new 4b302850 Fixed automated doc generation errors
4b302850 is described below
commit 4b3028501464836bbea6fe6a3d58e8c76209fa0e
Author: Bismanpal Singh <bi...@gmail.com>
AuthorDate: Fri Mar 27 15:17:43 2026 -0700
Fixed automated doc generation errors
---
.../third_party/pocketflow/scripts/detect_changed_tools.py | 10 +++++-----
.../third_party/pocketflow/scripts/run_pocketflow_for_tool.py | 11 +++++------
.../third_party/pocketflow/scripts/update_mdx_section.py | 10 +++++-----
3 files changed, 15 insertions(+), 16 deletions(-)
diff --git a/ecosystem/third_party/pocketflow/scripts/detect_changed_tools.py b/ecosystem/third_party/pocketflow/scripts/detect_changed_tools.py
index 5982049c..05ae9f81 100644
--- a/ecosystem/third_party/pocketflow/scripts/detect_changed_tools.py
+++ b/ecosystem/third_party/pocketflow/scripts/detect_changed_tools.py
@@ -4,7 +4,7 @@ Detect which tools have changed in the current commit/push
by checking git diff against the tool-doc-map.json.
Usage:
- python ecosystem/pocketflow/scripts/detect_changed_tools.py [--base-ref <ref>]
+ python ecosystem/third_party/pocketflow/scripts/detect_changed_tools.py [--base-ref <ref>]
Returns a list of tool names (one per line) that have changed.
"""
@@ -17,15 +17,15 @@ import subprocess
import sys
from pathlib import Path
-# Repo root is three levels up from this script
-REPO_ROOT = Path(__file__).resolve().parents[3]
-POCKETFLOW_DIR = REPO_ROOT / "ecosystem" / "pocketflow"
+# .../ecosystem/third_party/pocketflow/scripts/this_file.py
+POCKETFLOW_DIR = Path(__file__).resolve().parents[1]
+REPO_ROOT = POCKETFLOW_DIR.parents[2]
TOOL_MAP_PATH = POCKETFLOW_DIR / "tool-doc-map.json"
# Exclude these paths from triggering updates
EXCLUDE_PATTERNS = [
"ecosystem/AI-Tooling/beacon/**", # Don't trigger on doc changes
- "ecosystem/pocketflow/**", # Don't trigger on pocketflow changes
+ "ecosystem/third_party/pocketflow/**", # Don't trigger on pocketflow changes
]
diff --git a/ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py b/ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py
index 0cd4e9d8..5a444ca0 100644
--- a/ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py
+++ b/ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py
@@ -5,7 +5,7 @@ using only the generated index.md content.
Usage (from repo root):
- python ecosystem/pocketflow/scripts/run_pocketflow_for_tool.py --tool rescontract
+ python ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py --tool rescontract
This will:
- Look up `rescontract` in tool-doc-map.json
@@ -23,10 +23,9 @@ import subprocess
import sys
from pathlib import Path
-# Repo root is three levels up from this script:
-# ecosystem/pocketflow/scripts/run_pocketflow_for_tool.py
-REPO_ROOT = Path(__file__).resolve().parents[3]
-POCKETFLOW_DIR = REPO_ROOT / "ecosystem" / "pocketflow"
+# .../ecosystem/third_party/pocketflow/scripts/run_pocketflow_for_tool.py
+POCKETFLOW_DIR = Path(__file__).resolve().parents[1]
+REPO_ROOT = POCKETFLOW_DIR.parents[2]
OUTPUT_BASE = POCKETFLOW_DIR / ".pf-output"
@@ -55,7 +54,7 @@ def run_pocketflow_for_dir(
single_file: bool = False,
) -> Path:
"""
- Invoke ecosystem/pocketflow/main.py pointing at code_root and
+ Invoke ecosystem/third_party/pocketflow/main.py pointing at code_root and
returning the expected path to index.md for the generated project.
"""
main_py = POCKETFLOW_DIR / "main.py"
diff --git a/ecosystem/third_party/pocketflow/scripts/update_mdx_section.py b/ecosystem/third_party/pocketflow/scripts/update_mdx_section.py
index f5b9ce83..9e2cc254 100644
--- a/ecosystem/third_party/pocketflow/scripts/update_mdx_section.py
+++ b/ecosystem/third_party/pocketflow/scripts/update_mdx_section.py
@@ -4,7 +4,7 @@ Replace the auto-generated documentation block inside an MDX file
with fresh content produced by Pocketflow.
Usage:
- python ecosystem/pocketflow/scripts/update_mdx_section.py \
+ python ecosystem/third_party/pocketflow/scripts/update_mdx_section.py \
--tool rescontract \
--body-file /tmp/rescontract_body.md
"""
@@ -18,9 +18,9 @@ import subprocess
import sys
from pathlib import Path
-# Repo root is three levels up from this script:
-# ecosystem/pocketflow/scripts/update_mdx_section.py
-REPO_ROOT = Path(__file__).resolve().parents[3]
+# .../ecosystem/third_party/pocketflow/scripts/update_mdx_section.py
+POCKETFLOW_DIR = Path(__file__).resolve().parents[1]
+REPO_ROOT = POCKETFLOW_DIR.parents[2]
DEFAULT_TEMPLATE = """# {title}
{{/* BEGIN AUTO_DOC: {name} */}}
@@ -32,7 +32,7 @@ DEFAULT_TEMPLATE = """# {title}
def load_tool_map() -> list[dict]:
- tool_map_path = REPO_ROOT / "ecosystem" / "pocketflow" / "tool-doc-map.json"
+ tool_map_path = POCKETFLOW_DIR / "tool-doc-map.json"
try:
with tool_map_path.open("r", encoding="utf-8") as fh:
return json.load(fh)