mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
fix(backend): correct docs path in migrate_block_docs.py
migrate_block_docs.py was using docs/content/platform/blocks/ but the actual docs location is docs/integrations/ (matching generate_block_docs.py and the CI workflow). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -98,7 +98,7 @@ def collect_existing_manual_content() -> dict[str, dict[str, str]]:
|
||||
|
||||
# Find all existing md files via git
|
||||
result = subprocess.run(
|
||||
["git", "ls-files", "docs/content/platform/blocks/"],
|
||||
["git", "ls-files", "docs/integrations/"],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
cwd=Path(__file__).parent.parent.parent.parent,
|
||||
@@ -150,13 +150,7 @@ def run_migration():
|
||||
print(f"Found {len(blocks)} blocks")
|
||||
|
||||
print("\nStep 3: Generating new documentation...")
|
||||
output_dir = (
|
||||
Path(__file__).parent.parent.parent.parent
|
||||
/ "docs"
|
||||
/ "content"
|
||||
/ "platform"
|
||||
/ "blocks"
|
||||
)
|
||||
output_dir = Path(__file__).parent.parent.parent.parent / "docs" / "integrations"
|
||||
|
||||
file_mapping = get_block_file_mapping(blocks)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user